[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

abarth at webkit.org abarth at webkit.org
Wed Dec 22 12:32:32 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 4411750742a8e361c8c1bf20b693343fae2ea2a5
Author: abarth at webkit.org <abarth at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Aug 25 05:38:36 2010 +0000

    2010-08-24  Adam Barth  <abarth at webkit.org>
    
            Reviewed by Eric Seidel.
    
            Remove tagPriority
            https://bugs.webkit.org/show_bug.cgi?id=44557
    
            This code used to be used by the old parser.  Now it's unused.
    
            * html/HTMLAnchorElement.h:
            * html/HTMLAppletElement.h:
            * html/HTMLAreaElement.h:
            * html/HTMLAudioElement.h:
            * html/HTMLBRElement.h:
            * html/HTMLBaseElement.h:
            * html/HTMLBaseFontElement.h:
            * html/HTMLBlockquoteElement.h:
            * html/HTMLBodyElement.h:
            * html/HTMLCanvasElement.cpp:
            * html/HTMLCanvasElement.h:
            * html/HTMLDListElement.h:
            * html/HTMLDataGridCellElement.h:
            * html/HTMLDataGridColElement.h:
            * html/HTMLDataGridElement.h:
            * html/HTMLDataGridRowElement.h:
            * html/HTMLDirectoryElement.h:
            * html/HTMLDivElement.h:
            * html/HTMLElement.cpp:
            * html/HTMLElement.h:
            * html/HTMLEmbedElement.h:
            * html/HTMLFieldSetElement.h:
            * html/HTMLFontElement.h:
            * html/HTMLFormControlElement.h:
            * html/HTMLFormElement.h:
            * html/HTMLFrameElement.h:
            * html/HTMLFrameSetElement.h:
            * html/HTMLHRElement.h:
            * html/HTMLHeadElement.h:
            * html/HTMLHeadingElement.h:
            * html/HTMLHtmlElement.h:
            * html/HTMLIFrameElement.h:
            * html/HTMLImageElement.h:
            * html/HTMLInputElement.h:
            * html/HTMLIsIndexElement.h:
            * html/HTMLKeygenElement.h:
            * html/HTMLLIElement.h:
            * html/HTMLLabelElement.h:
            * html/HTMLLinkElement.h:
            * html/HTMLMapElement.h:
            * html/HTMLMarqueeElement.h:
            * html/HTMLMenuElement.h:
            * html/HTMLMetaElement.h:
            * html/HTMLModElement.h:
            * html/HTMLOListElement.h:
            * html/HTMLObjectElement.h:
            * html/HTMLOptionElement.h:
            * html/HTMLParagraphElement.h:
            * html/HTMLParamElement.h:
            * html/HTMLPreElement.h:
            * html/HTMLQuoteElement.h:
            * html/HTMLScriptElement.h:
            * html/HTMLSelectElement.h:
            * html/HTMLSourceElement.h:
            * html/HTMLStyleElement.h:
            * html/HTMLTableCaptionElement.h:
            * html/HTMLTableCellElement.h:
            * html/HTMLTableColElement.cpp:
            * html/HTMLTableColElement.h:
            * html/HTMLTableElement.h:
            * html/HTMLTableRowElement.h:
            * html/HTMLTableSectionElement.h:
            * html/HTMLUListElement.h:
            * html/HTMLVideoElement.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65982 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 7d96db6..acf65ba 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,77 @@
+2010-08-24  Adam Barth  <abarth at webkit.org>
+
+        Reviewed by Eric Seidel.
+
+        Remove tagPriority
+        https://bugs.webkit.org/show_bug.cgi?id=44557
+
+        This code used to be used by the old parser.  Now it's unused.
+
+        * html/HTMLAnchorElement.h:
+        * html/HTMLAppletElement.h:
+        * html/HTMLAreaElement.h:
+        * html/HTMLAudioElement.h:
+        * html/HTMLBRElement.h:
+        * html/HTMLBaseElement.h:
+        * html/HTMLBaseFontElement.h:
+        * html/HTMLBlockquoteElement.h:
+        * html/HTMLBodyElement.h:
+        * html/HTMLCanvasElement.cpp:
+        * html/HTMLCanvasElement.h:
+        * html/HTMLDListElement.h:
+        * html/HTMLDataGridCellElement.h:
+        * html/HTMLDataGridColElement.h:
+        * html/HTMLDataGridElement.h:
+        * html/HTMLDataGridRowElement.h:
+        * html/HTMLDirectoryElement.h:
+        * html/HTMLDivElement.h:
+        * html/HTMLElement.cpp:
+        * html/HTMLElement.h:
+        * html/HTMLEmbedElement.h:
+        * html/HTMLFieldSetElement.h:
+        * html/HTMLFontElement.h:
+        * html/HTMLFormControlElement.h:
+        * html/HTMLFormElement.h:
+        * html/HTMLFrameElement.h:
+        * html/HTMLFrameSetElement.h:
+        * html/HTMLHRElement.h:
+        * html/HTMLHeadElement.h:
+        * html/HTMLHeadingElement.h:
+        * html/HTMLHtmlElement.h:
+        * html/HTMLIFrameElement.h:
+        * html/HTMLImageElement.h:
+        * html/HTMLInputElement.h:
+        * html/HTMLIsIndexElement.h:
+        * html/HTMLKeygenElement.h:
+        * html/HTMLLIElement.h:
+        * html/HTMLLabelElement.h:
+        * html/HTMLLinkElement.h:
+        * html/HTMLMapElement.h:
+        * html/HTMLMarqueeElement.h:
+        * html/HTMLMenuElement.h:
+        * html/HTMLMetaElement.h:
+        * html/HTMLModElement.h:
+        * html/HTMLOListElement.h:
+        * html/HTMLObjectElement.h:
+        * html/HTMLOptionElement.h:
+        * html/HTMLParagraphElement.h:
+        * html/HTMLParamElement.h:
+        * html/HTMLPreElement.h:
+        * html/HTMLQuoteElement.h:
+        * html/HTMLScriptElement.h:
+        * html/HTMLSelectElement.h:
+        * html/HTMLSourceElement.h:
+        * html/HTMLStyleElement.h:
+        * html/HTMLTableCaptionElement.h:
+        * html/HTMLTableCellElement.h:
+        * html/HTMLTableColElement.cpp:
+        * html/HTMLTableColElement.h:
+        * html/HTMLTableElement.h:
+        * html/HTMLTableRowElement.h:
+        * html/HTMLTableSectionElement.h:
+        * html/HTMLUListElement.h:
+        * html/HTMLVideoElement.h:
+
 2010-08-24  Eric Seidel  <eric at webkit.org>
 
         Reviewed by Adam Barth.
diff --git a/WebCore/html/HTMLAnchorElement.h b/WebCore/html/HTMLAnchorElement.h
index 4f7b4fd..ce38a26 100644
--- a/WebCore/html/HTMLAnchorElement.h
+++ b/WebCore/html/HTMLAnchorElement.h
@@ -98,7 +98,6 @@ protected:
 
 private:
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
     virtual bool supportsFocus() const;
     virtual bool isMouseFocusable() const;
     virtual bool isKeyboardFocusable(KeyboardEvent*) const;
diff --git a/WebCore/html/HTMLAppletElement.h b/WebCore/html/HTMLAppletElement.h
index e0e4ec9..1499279 100644
--- a/WebCore/html/HTMLAppletElement.h
+++ b/WebCore/html/HTMLAppletElement.h
@@ -34,8 +34,6 @@ public:
 private:
     HTMLAppletElement(const QualifiedName&, Document*);
 
-    virtual int tagPriority() const { return 1; }
-
     virtual void parseMappedAttribute(Attribute*);
     
     virtual bool rendererIsNeeded(RenderStyle*);
diff --git a/WebCore/html/HTMLAreaElement.h b/WebCore/html/HTMLAreaElement.h
index ce711b2..cac00e2 100644
--- a/WebCore/html/HTMLAreaElement.h
+++ b/WebCore/html/HTMLAreaElement.h
@@ -51,7 +51,6 @@ private:
     HTMLAreaElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
     virtual void parseMappedAttribute(Attribute*);
     virtual bool supportsFocus() const;
     virtual String target() const;
diff --git a/WebCore/html/HTMLAudioElement.h b/WebCore/html/HTMLAudioElement.h
index e453486..a12cd4b 100644
--- a/WebCore/html/HTMLAudioElement.h
+++ b/WebCore/html/HTMLAudioElement.h
@@ -43,7 +43,6 @@ private:
     HTMLAudioElement(const QualifiedName&, Document*);
 
     virtual bool isVideo() const { return false; }
-    virtual int tagPriority() const { return 5; }
 };
 
 } //namespace
diff --git a/WebCore/html/HTMLBRElement.h b/WebCore/html/HTMLBRElement.h
index 3bb5af1..dfd84f8 100644
--- a/WebCore/html/HTMLBRElement.h
+++ b/WebCore/html/HTMLBRElement.h
@@ -37,7 +37,6 @@ private:
     HTMLBRElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLBaseElement.h b/WebCore/html/HTMLBaseElement.h
index 6c2d2d8..6fdd1e1 100644
--- a/WebCore/html/HTMLBaseElement.h
+++ b/WebCore/html/HTMLBaseElement.h
@@ -35,7 +35,6 @@ private:
     HTMLBaseElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual String target() const { return m_target; }
 
diff --git a/WebCore/html/HTMLBaseFontElement.h b/WebCore/html/HTMLBaseFontElement.h
index 5651a61..eea3065 100644
--- a/WebCore/html/HTMLBaseFontElement.h
+++ b/WebCore/html/HTMLBaseFontElement.h
@@ -35,7 +35,6 @@ private:
     HTMLBaseFontElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 };
 
 } // namespace
diff --git a/WebCore/html/HTMLBlockquoteElement.h b/WebCore/html/HTMLBlockquoteElement.h
index 3f46d63..ca81612 100644
--- a/WebCore/html/HTMLBlockquoteElement.h
+++ b/WebCore/html/HTMLBlockquoteElement.h
@@ -36,7 +36,6 @@ private:
     HTMLBlockquoteElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 };
 
 } // namespace WebCore
diff --git a/WebCore/html/HTMLBodyElement.h b/WebCore/html/HTMLBodyElement.h
index 7b32549..6526aca 100644
--- a/WebCore/html/HTMLBodyElement.h
+++ b/WebCore/html/HTMLBodyElement.h
@@ -70,8 +70,7 @@ private:
     HTMLBodyElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 10; }
-    
+
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
 
diff --git a/WebCore/html/HTMLCanvasElement.cpp b/WebCore/html/HTMLCanvasElement.cpp
index c8355ca..17fb6e8 100644
--- a/WebCore/html/HTMLCanvasElement.cpp
+++ b/WebCore/html/HTMLCanvasElement.cpp
@@ -108,15 +108,6 @@ HTMLTagStatus HTMLCanvasElement::endTagRequirement() const
     return HTMLElement::endTagRequirement();
 }
 
-int HTMLCanvasElement::tagPriority() const 
-{ 
-    Settings* settings = document()->settings();
-    if (settings && settings->usesDashboardBackwardCompatibilityMode())
-        return 0; 
-
-    return HTMLElement::tagPriority();
-}
-
 #endif
 
 void HTMLCanvasElement::parseMappedAttribute(Attribute* attr)
diff --git a/WebCore/html/HTMLCanvasElement.h b/WebCore/html/HTMLCanvasElement.h
index a52cc9c..5232e03 100644
--- a/WebCore/html/HTMLCanvasElement.h
+++ b/WebCore/html/HTMLCanvasElement.h
@@ -120,7 +120,6 @@ private:
 
 #if ENABLE(DASHBOARD_SUPPORT)
     virtual HTMLTagStatus endTagRequirement() const;
-    virtual int tagPriority() const;
 #endif
 
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLDListElement.h b/WebCore/html/HTMLDListElement.h
index 260aa42..20dca9f 100644
--- a/WebCore/html/HTMLDListElement.h
+++ b/WebCore/html/HTMLDListElement.h
@@ -35,7 +35,6 @@ private:
     HTMLDListElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 };
 
 } //namespace
diff --git a/WebCore/html/HTMLDataGridCellElement.h b/WebCore/html/HTMLDataGridCellElement.h
index 567ec23..767f7d8 100644
--- a/WebCore/html/HTMLDataGridCellElement.h
+++ b/WebCore/html/HTMLDataGridCellElement.h
@@ -55,7 +55,6 @@ private:
     HTMLDataGridCellElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
     
 };
 
diff --git a/WebCore/html/HTMLDataGridColElement.h b/WebCore/html/HTMLDataGridColElement.h
index 701bc42..116e3ea 100644
--- a/WebCore/html/HTMLDataGridColElement.h
+++ b/WebCore/html/HTMLDataGridColElement.h
@@ -61,7 +61,6 @@ private:
     HTMLDataGridColElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
     virtual void insertedIntoTree(bool /*deep*/);
     virtual void removedFromTree(bool /*deep*/);
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLDataGridElement.h b/WebCore/html/HTMLDataGridElement.h
index e29bf98..d1e97ce 100644
--- a/WebCore/html/HTMLDataGridElement.h
+++ b/WebCore/html/HTMLDataGridElement.h
@@ -56,7 +56,6 @@ public:
 private:
     HTMLDataGridElement(const QualifiedName&, Document*);
 
-    virtual int tagPriority() const { return 6; } // Same as <select>s
     virtual bool checkDTD(const Node*);
 
     virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
diff --git a/WebCore/html/HTMLDataGridRowElement.h b/WebCore/html/HTMLDataGridRowElement.h
index 81be914..a7f44b6 100644
--- a/WebCore/html/HTMLDataGridRowElement.h
+++ b/WebCore/html/HTMLDataGridRowElement.h
@@ -48,7 +48,6 @@ public:
 private:
     HTMLDataGridRowElement(const QualifiedName&, Document*);
 
-    virtual int tagPriority() const { return 2; } // Same as <option>s.
     virtual bool checkDTD(const Node*);
 };
 
diff --git a/WebCore/html/HTMLDirectoryElement.h b/WebCore/html/HTMLDirectoryElement.h
index 0e440d4..6df1b43 100644
--- a/WebCore/html/HTMLDirectoryElement.h
+++ b/WebCore/html/HTMLDirectoryElement.h
@@ -35,7 +35,6 @@ private:
     HTMLDirectoryElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 };
 
 } //namespace
diff --git a/WebCore/html/HTMLDivElement.h b/WebCore/html/HTMLDivElement.h
index 30eddf3..226251d 100644
--- a/WebCore/html/HTMLDivElement.h
+++ b/WebCore/html/HTMLDivElement.h
@@ -37,7 +37,6 @@ protected:
 
 private:
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLElement.cpp b/WebCore/html/HTMLElement.cpp
index 33e809d..3e1ceaa 100644
--- a/WebCore/html/HTMLElement.cpp
+++ b/WebCore/html/HTMLElement.cpp
@@ -80,51 +80,6 @@ HTMLTagStatus HTMLElement::endTagRequirement() const
     return TagStatusRequired;
 }
 
-struct Empty1IntHashTraits : HashTraits<int> {
-    static const bool emptyValueIsZero = false;
-    static int emptyValue() { return 1; }
-};
-typedef HashMap<AtomicStringImpl*, int, DefaultHash<AtomicStringImpl*>::Hash, HashTraits<AtomicStringImpl*>, Empty1IntHashTraits> TagPriorityMap;
-
-static const TagPriorityMap* createTagPriorityMap()
-{
-    TagPriorityMap* map = new TagPriorityMap;
-
-    map->add(wbrTag.localName().impl(), 0);
-
-    map->add(addressTag.localName().impl(), 3);
-    map->add(ddTag.localName().impl(), 3);
-    map->add(dtTag.localName().impl(), 3);
-    map->add(noscriptTag.localName().impl(), 3);
-    map->add(rpTag.localName().impl(), 3);
-    map->add(rtTag.localName().impl(), 3);
-
-    // 5 is same as <div>'s priority.
-    map->add(articleTag.localName().impl(), 5);
-    map->add(asideTag.localName().impl(), 5);
-    map->add(centerTag.localName().impl(), 5);
-    map->add(footerTag.localName().impl(), 5);
-    map->add(headerTag.localName().impl(), 5);
-    map->add(hgroupTag.localName().impl(), 5);
-    map->add(nobrTag.localName().impl(), 5);
-    map->add(rubyTag.localName().impl(), 5);
-    map->add(navTag.localName().impl(), 5);
-    map->add(sectionTag.localName().impl(), 5);
-
-    map->add(noembedTag.localName().impl(), 10);
-    map->add(noframesTag.localName().impl(), 10);
-
-    // TagPriorityMap returns 1 for unregistered tags. It's same as <span>.
-    // This way custom tag name elements will behave like inline spans.
-    return map;
-}
-
-int HTMLElement::tagPriority() const
-{
-    static const TagPriorityMap* tagPriorityMap = createTagPriorityMap();
-    return tagPriorityMap->get(localName().impl());
-}
-
 bool HTMLElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const
 {
     if (attrName == alignAttr ||
diff --git a/WebCore/html/HTMLElement.h b/WebCore/html/HTMLElement.h
index 8f54d3e..a79da33 100644
--- a/WebCore/html/HTMLElement.h
+++ b/WebCore/html/HTMLElement.h
@@ -73,7 +73,6 @@ public:
     virtual void accessKeyAction(bool sendToAnyElement);
 
     virtual HTMLTagStatus endTagRequirement() const;
-    virtual int tagPriority() const;
 
     virtual bool rendererIsNeeded(RenderStyle*);
     virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
diff --git a/WebCore/html/HTMLEmbedElement.h b/WebCore/html/HTMLEmbedElement.h
index 53da011..97fc3c3 100644
--- a/WebCore/html/HTMLEmbedElement.h
+++ b/WebCore/html/HTMLEmbedElement.h
@@ -37,7 +37,6 @@ private:
     HTMLEmbedElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLFieldSetElement.h b/WebCore/html/HTMLFieldSetElement.h
index 58c3ec4..b3e589a 100644
--- a/WebCore/html/HTMLFieldSetElement.h
+++ b/WebCore/html/HTMLFieldSetElement.h
@@ -35,7 +35,6 @@ public:
 private:
     HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement*);
 
-    virtual int tagPriority() const { return 3; }
     virtual bool checkDTD(const Node* newChild);
 
     virtual bool supportsFocus() const;
diff --git a/WebCore/html/HTMLFontElement.h b/WebCore/html/HTMLFontElement.h
index f96a50b..e7d95b9 100644
--- a/WebCore/html/HTMLFontElement.h
+++ b/WebCore/html/HTMLFontElement.h
@@ -38,7 +38,6 @@ private:
     HTMLFontElement(const QualifiedName&, Document*);
     
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLFormControlElement.h b/WebCore/html/HTMLFormControlElement.h
index 02ea4e7..c7b7280 100644
--- a/WebCore/html/HTMLFormControlElement.h
+++ b/WebCore/html/HTMLFormControlElement.h
@@ -123,7 +123,6 @@ protected:
 
 private:
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
 
     virtual const AtomicString& formControlName() const;
     virtual const AtomicString& formControlType() const = 0;
diff --git a/WebCore/html/HTMLFormElement.h b/WebCore/html/HTMLFormElement.h
index c9fb9ac..cd67b85 100644
--- a/WebCore/html/HTMLFormElement.h
+++ b/WebCore/html/HTMLFormElement.h
@@ -115,7 +115,6 @@ private:
     HTMLFormElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 3; }
 
     virtual bool rendererIsNeeded(RenderStyle*);
     virtual void insertedIntoDocument();
diff --git a/WebCore/html/HTMLFrameElement.h b/WebCore/html/HTMLFrameElement.h
index 3b1b5ad..3b49a76 100644
--- a/WebCore/html/HTMLFrameElement.h
+++ b/WebCore/html/HTMLFrameElement.h
@@ -40,7 +40,6 @@ private:
     HTMLFrameElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
   
     virtual void attach();
 
diff --git a/WebCore/html/HTMLFrameSetElement.h b/WebCore/html/HTMLFrameSetElement.h
index a79793d..fa63fd8 100644
--- a/WebCore/html/HTMLFrameSetElement.h
+++ b/WebCore/html/HTMLFrameSetElement.h
@@ -68,7 +68,6 @@ private:
     HTMLFrameSetElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 10; }
     virtual bool checkDTD(const Node* newChild);
 
     virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
diff --git a/WebCore/html/HTMLHRElement.h b/WebCore/html/HTMLHRElement.h
index 3cfaabf..68f9f45 100644
--- a/WebCore/html/HTMLHRElement.h
+++ b/WebCore/html/HTMLHRElement.h
@@ -36,7 +36,6 @@ private:
     HTMLHRElement(const QualifiedName&, Document*);
     
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
     
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLHeadElement.h b/WebCore/html/HTMLHeadElement.h
index c7cfc00..a4177d3 100644
--- a/WebCore/html/HTMLHeadElement.h
+++ b/WebCore/html/HTMLHeadElement.h
@@ -33,8 +33,6 @@ public:
     static PassRefPtr<HTMLHeadElement> create(Document*);
     static PassRefPtr<HTMLHeadElement> create(const QualifiedName&, Document*);
 
-    virtual int tagPriority() const { return 10; }
-
 private:
     HTMLHeadElement(const QualifiedName&, Document*);
 
diff --git a/WebCore/html/HTMLHeadingElement.h b/WebCore/html/HTMLHeadingElement.h
index 575a05c..9c4b5b9 100644
--- a/WebCore/html/HTMLHeadingElement.h
+++ b/WebCore/html/HTMLHeadingElement.h
@@ -35,7 +35,6 @@ private:
     HTMLHeadingElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
     virtual bool checkDTD(const Node* newChild);
 };
 
diff --git a/WebCore/html/HTMLHtmlElement.h b/WebCore/html/HTMLHtmlElement.h
index 34879ed..7efb963 100644
--- a/WebCore/html/HTMLHtmlElement.h
+++ b/WebCore/html/HTMLHtmlElement.h
@@ -37,7 +37,6 @@ private:
     HTMLHtmlElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 11; }
     virtual bool checkDTD(const Node* newChild);
 
 #if ENABLE(OFFLINE_WEB_APPLICATIONS)
diff --git a/WebCore/html/HTMLIFrameElement.h b/WebCore/html/HTMLIFrameElement.h
index 1d01c66..8c54fe0 100644
--- a/WebCore/html/HTMLIFrameElement.h
+++ b/WebCore/html/HTMLIFrameElement.h
@@ -36,7 +36,6 @@ private:
     HTMLIFrameElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLImageElement.h b/WebCore/html/HTMLImageElement.h
index 2b29570..23aa6c7 100644
--- a/WebCore/html/HTMLImageElement.h
+++ b/WebCore/html/HTMLImageElement.h
@@ -81,7 +81,6 @@ protected:
 
 private:
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLInputElement.h b/WebCore/html/HTMLInputElement.h
index 18cbaa4..f5be46a 100644
--- a/WebCore/html/HTMLInputElement.h
+++ b/WebCore/html/HTMLInputElement.h
@@ -219,7 +219,6 @@ private:
     virtual void didMoveToNewOwnerDocument();
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual bool isKeyboardFocusable(KeyboardEvent*) const;
     virtual bool isMouseFocusable() const;
diff --git a/WebCore/html/HTMLIsIndexElement.h b/WebCore/html/HTMLIsIndexElement.h
index 8c33d71..d66c0ed 100644
--- a/WebCore/html/HTMLIsIndexElement.h
+++ b/WebCore/html/HTMLIsIndexElement.h
@@ -37,7 +37,6 @@ private:
     HTMLIsIndexElement(const QualifiedName&, Document*, HTMLFormElement*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
     virtual bool canTriggerImplicitSubmission() const { return true; }
 
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLKeygenElement.h b/WebCore/html/HTMLKeygenElement.h
index baa9a17..4c08014 100644
--- a/WebCore/html/HTMLKeygenElement.h
+++ b/WebCore/html/HTMLKeygenElement.h
@@ -35,7 +35,6 @@ public:
 private:
     HTMLKeygenElement(const QualifiedName&, Document*, HTMLFormElement*);
 
-    virtual int tagPriority() const { return 0; }
     virtual const AtomicString& formControlType() const;
     virtual bool isEnumeratable() const { return false; }
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLLIElement.h b/WebCore/html/HTMLLIElement.h
index 418f7a4..2174fe8 100644
--- a/WebCore/html/HTMLLIElement.h
+++ b/WebCore/html/HTMLLIElement.h
@@ -36,7 +36,6 @@ private:
     HTMLLIElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
-    virtual int tagPriority() const { return 3; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLLabelElement.h b/WebCore/html/HTMLLabelElement.h
index 7964ade..2b09e17 100644
--- a/WebCore/html/HTMLLabelElement.h
+++ b/WebCore/html/HTMLLabelElement.h
@@ -38,8 +38,6 @@ public:
 private:
     HTMLLabelElement(const QualifiedName&, Document*);
 
-    virtual int tagPriority() const { return 5; }
-
     virtual bool isFocusable() const;
 
     virtual void accessKeyAction(bool sendToAnyElement);
diff --git a/WebCore/html/HTMLLinkElement.h b/WebCore/html/HTMLLinkElement.h
index f8ccd12..6e460e0 100644
--- a/WebCore/html/HTMLLinkElement.h
+++ b/WebCore/html/HTMLLinkElement.h
@@ -76,7 +76,6 @@ public:
 
 private:
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual void parseMappedAttribute(Attribute*);
 
diff --git a/WebCore/html/HTMLMapElement.h b/WebCore/html/HTMLMapElement.h
index 1394c95..44ec4aa 100644
--- a/WebCore/html/HTMLMapElement.h
+++ b/WebCore/html/HTMLMapElement.h
@@ -48,7 +48,6 @@ private:
     HTMLMapElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
     virtual bool checkDTD(const Node*);
 
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLMarqueeElement.h b/WebCore/html/HTMLMarqueeElement.h
index 4932d46..317b138 100644
--- a/WebCore/html/HTMLMarqueeElement.h
+++ b/WebCore/html/HTMLMarqueeElement.h
@@ -45,7 +45,6 @@ private:
     HTMLMarqueeElement(const QualifiedName&, Document*);
     
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 3; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLMenuElement.h b/WebCore/html/HTMLMenuElement.h
index 002df00..753a28d 100644
--- a/WebCore/html/HTMLMenuElement.h
+++ b/WebCore/html/HTMLMenuElement.h
@@ -35,7 +35,6 @@ private:
     HTMLMenuElement(const QualifiedName&, Document*);
     
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 };
 
 } //namespace
diff --git a/WebCore/html/HTMLMetaElement.h b/WebCore/html/HTMLMetaElement.h
index 6af7483..6ee7191 100644
--- a/WebCore/html/HTMLMetaElement.h
+++ b/WebCore/html/HTMLMetaElement.h
@@ -39,7 +39,6 @@ private:
     HTMLMetaElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual void parseMappedAttribute(Attribute*);
     virtual void insertedIntoDocument();
diff --git a/WebCore/html/HTMLModElement.h b/WebCore/html/HTMLModElement.h
index 7370320..4292006 100644
--- a/WebCore/html/HTMLModElement.h
+++ b/WebCore/html/HTMLModElement.h
@@ -36,7 +36,6 @@ private:
     HTMLModElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
 };
 
 } //namespace
diff --git a/WebCore/html/HTMLOListElement.h b/WebCore/html/HTMLOListElement.h
index 3067138..62e2ae1 100644
--- a/WebCore/html/HTMLOListElement.h
+++ b/WebCore/html/HTMLOListElement.h
@@ -39,7 +39,6 @@ private:
     HTMLOListElement(const QualifiedName&, Document*);
         
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLObjectElement.h b/WebCore/html/HTMLObjectElement.h
index c904c74..8dc59be 100644
--- a/WebCore/html/HTMLObjectElement.h
+++ b/WebCore/html/HTMLObjectElement.h
@@ -44,8 +44,6 @@ public:
 private:
     HTMLObjectElement(const QualifiedName&, Document*, bool createdByParser);
 
-    virtual int tagPriority() const { return 5; }
-
     virtual void parseMappedAttribute(Attribute*);
 
     virtual void attach();
diff --git a/WebCore/html/HTMLOptionElement.h b/WebCore/html/HTMLOptionElement.h
index ffaee58..5711d09 100644
--- a/WebCore/html/HTMLOptionElement.h
+++ b/WebCore/html/HTMLOptionElement.h
@@ -67,7 +67,6 @@ private:
     HTMLOptionElement(const QualifiedName&, Document*, HTMLFormElement* = 0);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
-    virtual int tagPriority() const { return 2; }
     virtual bool checkDTD(const Node* newChild);
     virtual bool supportsFocus() const;
     virtual bool isFocusable() const;
diff --git a/WebCore/html/HTMLParagraphElement.h b/WebCore/html/HTMLParagraphElement.h
index 0a31a1c..bf47aa4 100644
--- a/WebCore/html/HTMLParagraphElement.h
+++ b/WebCore/html/HTMLParagraphElement.h
@@ -35,7 +35,6 @@ private:
     HTMLParagraphElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 3; }
     virtual bool checkDTD(const Node* newChild);
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
diff --git a/WebCore/html/HTMLParamElement.h b/WebCore/html/HTMLParamElement.h
index a787927..60b90a4 100644
--- a/WebCore/html/HTMLParamElement.h
+++ b/WebCore/html/HTMLParamElement.h
@@ -38,7 +38,6 @@ private:
     HTMLParamElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
 
     virtual void parseMappedAttribute(Attribute*);
 
diff --git a/WebCore/html/HTMLPreElement.h b/WebCore/html/HTMLPreElement.h
index 1a67c65..cf48180 100644
--- a/WebCore/html/HTMLPreElement.h
+++ b/WebCore/html/HTMLPreElement.h
@@ -35,7 +35,6 @@ private:
     HTMLPreElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLQuoteElement.h b/WebCore/html/HTMLQuoteElement.h
index 9261da6..9babd8e 100644
--- a/WebCore/html/HTMLQuoteElement.h
+++ b/WebCore/html/HTMLQuoteElement.h
@@ -37,7 +37,6 @@ private:
     HTMLQuoteElement(const QualifiedName&, Document*);
     
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
 
     virtual void insertedIntoDocument();
 };
diff --git a/WebCore/html/HTMLScriptElement.h b/WebCore/html/HTMLScriptElement.h
index b18278d..5fc95d9 100644
--- a/WebCore/html/HTMLScriptElement.h
+++ b/WebCore/html/HTMLScriptElement.h
@@ -50,7 +50,6 @@ private:
     virtual String scriptContent() const;
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
     virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
 
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLSelectElement.h b/WebCore/html/HTMLSelectElement.h
index 59c943a..918383a 100644
--- a/WebCore/html/HTMLSelectElement.h
+++ b/WebCore/html/HTMLSelectElement.h
@@ -86,7 +86,6 @@ protected:
     HTMLSelectElement(const QualifiedName&, Document*, HTMLFormElement*);
 
 private:
-    virtual int tagPriority() const { return 6; }
     virtual bool checkDTD(const Node* newChild);
 
     virtual const AtomicString& formControlType() const;
diff --git a/WebCore/html/HTMLSourceElement.h b/WebCore/html/HTMLSourceElement.h
index 7d49a3e..a0dd952 100644
--- a/WebCore/html/HTMLSourceElement.h
+++ b/WebCore/html/HTMLSourceElement.h
@@ -50,7 +50,6 @@ private:
     HTMLSourceElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
-    virtual int tagPriority() const { return 0; }
     
     virtual void insertedIntoTree(bool);
     virtual bool isURLAttribute(Attribute*) const;
diff --git a/WebCore/html/HTMLStyleElement.h b/WebCore/html/HTMLStyleElement.h
index 07b5bd9..1379f1b 100644
--- a/WebCore/html/HTMLStyleElement.h
+++ b/WebCore/html/HTMLStyleElement.h
@@ -42,7 +42,6 @@ private:
     HTMLStyleElement(const QualifiedName&, Document*, bool createdByParser);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 1; }
     virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
 
     // overload from HTMLElement
diff --git a/WebCore/html/HTMLTableCaptionElement.h b/WebCore/html/HTMLTableCaptionElement.h
index d19c7ce..b78d8b0 100644
--- a/WebCore/html/HTMLTableCaptionElement.h
+++ b/WebCore/html/HTMLTableCaptionElement.h
@@ -38,7 +38,6 @@ private:
     HTMLTableCaptionElement(const QualifiedName&, Document*);
     
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
     
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLTableCellElement.h b/WebCore/html/HTMLTableCellElement.h
index a70bdcd..a937c96 100644
--- a/WebCore/html/HTMLTableCellElement.h
+++ b/WebCore/html/HTMLTableCellElement.h
@@ -57,7 +57,6 @@ private:
     HTMLTableCellElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
-    virtual int tagPriority() const { return 6; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLTableColElement.cpp b/WebCore/html/HTMLTableColElement.cpp
index 6c2f1fe..8ae0400 100644
--- a/WebCore/html/HTMLTableColElement.cpp
+++ b/WebCore/html/HTMLTableColElement.cpp
@@ -52,11 +52,6 @@ HTMLTagStatus HTMLTableColElement::endTagRequirement() const
     return hasLocalName(colTag) ? TagStatusForbidden : TagStatusOptional;
 }
 
-int HTMLTableColElement::tagPriority() const
-{
-    return hasLocalName(colTag) ? 0 : 1;
-}
-
 bool HTMLTableColElement::checkDTD(const Node* newChild)
 {
     if (hasLocalName(colTag))
diff --git a/WebCore/html/HTMLTableColElement.h b/WebCore/html/HTMLTableColElement.h
index 4a219c1..d093721 100644
--- a/WebCore/html/HTMLTableColElement.h
+++ b/WebCore/html/HTMLTableColElement.h
@@ -43,7 +43,6 @@ private:
     HTMLTableColElement(const QualifiedName& tagName, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const;
-    virtual int tagPriority() const;
     virtual bool checkDTD(const Node*);
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLTableElement.h b/WebCore/html/HTMLTableElement.h
index c48fee5..7ccc349 100644
--- a/WebCore/html/HTMLTableElement.h
+++ b/WebCore/html/HTMLTableElement.h
@@ -74,7 +74,6 @@ private:
     HTMLTableElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 9; }
     virtual bool checkDTD(const Node*);
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
diff --git a/WebCore/html/HTMLTableRowElement.h b/WebCore/html/HTMLTableRowElement.h
index 825d763..b748fb5 100644
--- a/WebCore/html/HTMLTableRowElement.h
+++ b/WebCore/html/HTMLTableRowElement.h
@@ -53,7 +53,6 @@ private:
     HTMLTableRowElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
-    virtual int tagPriority() const { return 7; }
     virtual bool checkDTD(const Node*);
 };
 
diff --git a/WebCore/html/HTMLTableSectionElement.h b/WebCore/html/HTMLTableSectionElement.h
index 3e356da..471ea02 100644
--- a/WebCore/html/HTMLTableSectionElement.h
+++ b/WebCore/html/HTMLTableSectionElement.h
@@ -59,7 +59,6 @@ private:
     HTMLTableSectionElement(const QualifiedName& tagName, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
-    virtual int tagPriority() const { return 8; }
     virtual bool checkDTD(const Node*);
     virtual bool canHaveAdditionalAttributeStyleDecls() const { return true; }
     virtual void additionalAttributeStyleDecls(Vector<CSSMutableStyleDeclaration*>&);
diff --git a/WebCore/html/HTMLUListElement.h b/WebCore/html/HTMLUListElement.h
index 996626c..c6d6d02 100644
--- a/WebCore/html/HTMLUListElement.h
+++ b/WebCore/html/HTMLUListElement.h
@@ -36,7 +36,6 @@ private:
     HTMLUListElement(const QualifiedName&, Document*);
 
     virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
-    virtual int tagPriority() const { return 5; }
 
     virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
     virtual void parseMappedAttribute(Attribute*);
diff --git a/WebCore/html/HTMLVideoElement.h b/WebCore/html/HTMLVideoElement.h
index 04a0beb..d893411 100644
--- a/WebCore/html/HTMLVideoElement.h
+++ b/WebCore/html/HTMLVideoElement.h
@@ -63,7 +63,6 @@ public:
 private:
     HTMLVideoElement(const QualifiedName&, Document*);
 
-    virtual int tagPriority() const { return 5; }
     virtual bool rendererIsNeeded(RenderStyle*);
 #if !ENABLE(PLUGIN_PROXY_FOR_VIDEO)
     virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list