Changeset 65982 in webkit


Ignore:
Timestamp:
Aug 24, 2010 10:38:36 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-08-24 Adam Barth <abarth@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:
Location:
trunk/WebCore
Files:
65 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65981 r65982  
     12010-08-24  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove tagPriority
     6        https://bugs.webkit.org/show_bug.cgi?id=44557
     7
     8        This code used to be used by the old parser.  Now it's unused.
     9
     10        * html/HTMLAnchorElement.h:
     11        * html/HTMLAppletElement.h:
     12        * html/HTMLAreaElement.h:
     13        * html/HTMLAudioElement.h:
     14        * html/HTMLBRElement.h:
     15        * html/HTMLBaseElement.h:
     16        * html/HTMLBaseFontElement.h:
     17        * html/HTMLBlockquoteElement.h:
     18        * html/HTMLBodyElement.h:
     19        * html/HTMLCanvasElement.cpp:
     20        * html/HTMLCanvasElement.h:
     21        * html/HTMLDListElement.h:
     22        * html/HTMLDataGridCellElement.h:
     23        * html/HTMLDataGridColElement.h:
     24        * html/HTMLDataGridElement.h:
     25        * html/HTMLDataGridRowElement.h:
     26        * html/HTMLDirectoryElement.h:
     27        * html/HTMLDivElement.h:
     28        * html/HTMLElement.cpp:
     29        * html/HTMLElement.h:
     30        * html/HTMLEmbedElement.h:
     31        * html/HTMLFieldSetElement.h:
     32        * html/HTMLFontElement.h:
     33        * html/HTMLFormControlElement.h:
     34        * html/HTMLFormElement.h:
     35        * html/HTMLFrameElement.h:
     36        * html/HTMLFrameSetElement.h:
     37        * html/HTMLHRElement.h:
     38        * html/HTMLHeadElement.h:
     39        * html/HTMLHeadingElement.h:
     40        * html/HTMLHtmlElement.h:
     41        * html/HTMLIFrameElement.h:
     42        * html/HTMLImageElement.h:
     43        * html/HTMLInputElement.h:
     44        * html/HTMLIsIndexElement.h:
     45        * html/HTMLKeygenElement.h:
     46        * html/HTMLLIElement.h:
     47        * html/HTMLLabelElement.h:
     48        * html/HTMLLinkElement.h:
     49        * html/HTMLMapElement.h:
     50        * html/HTMLMarqueeElement.h:
     51        * html/HTMLMenuElement.h:
     52        * html/HTMLMetaElement.h:
     53        * html/HTMLModElement.h:
     54        * html/HTMLOListElement.h:
     55        * html/HTMLObjectElement.h:
     56        * html/HTMLOptionElement.h:
     57        * html/HTMLParagraphElement.h:
     58        * html/HTMLParamElement.h:
     59        * html/HTMLPreElement.h:
     60        * html/HTMLQuoteElement.h:
     61        * html/HTMLScriptElement.h:
     62        * html/HTMLSelectElement.h:
     63        * html/HTMLSourceElement.h:
     64        * html/HTMLStyleElement.h:
     65        * html/HTMLTableCaptionElement.h:
     66        * html/HTMLTableCellElement.h:
     67        * html/HTMLTableColElement.cpp:
     68        * html/HTMLTableColElement.h:
     69        * html/HTMLTableElement.h:
     70        * html/HTMLTableRowElement.h:
     71        * html/HTMLTableSectionElement.h:
     72        * html/HTMLUListElement.h:
     73        * html/HTMLVideoElement.h:
     74
    1752010-08-24  Eric Seidel  <eric@webkit.org>
    276
  • trunk/WebCore/html/HTMLAnchorElement.h

    r59773 r65982  
    9999private:
    100100    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    101     virtual int tagPriority() const { return 1; }
    102101    virtual bool supportsFocus() const;
    103102    virtual bool isMouseFocusable() const;
  • trunk/WebCore/html/HTMLAppletElement.h

    r61959 r65982  
    3535    HTMLAppletElement(const QualifiedName&, Document*);
    3636
    37     virtual int tagPriority() const { return 1; }
    38 
    3937    virtual void parseMappedAttribute(Attribute*);
    4038   
  • trunk/WebCore/html/HTMLAreaElement.h

    r61959 r65982  
    5252
    5353    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    54     virtual int tagPriority() const { return 0; }
    5554    virtual void parseMappedAttribute(Attribute*);
    5655    virtual bool supportsFocus() const;
  • trunk/WebCore/html/HTMLAudioElement.h

    r60342 r65982  
    4444
    4545    virtual bool isVideo() const { return false; }
    46     virtual int tagPriority() const { return 5; }
    4746};
    4847
  • trunk/WebCore/html/HTMLBRElement.h

    r60342 r65982  
    3838
    3939    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    40     virtual int tagPriority() const { return 0; }
    4140
    4241    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLBaseElement.h

    r60342 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    38     virtual int tagPriority() const { return 0; }
    3938
    4039    virtual String target() const { return m_target; }
  • trunk/WebCore/html/HTMLBaseFontElement.h

    r61959 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    38     virtual int tagPriority() const { return 0; }
    3938};
    4039
  • trunk/WebCore/html/HTMLBlockquoteElement.h

    r60342 r65982  
    3737
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    39     virtual int tagPriority() const { return 5; }
    4039};
    4140
  • trunk/WebCore/html/HTMLBodyElement.h

    r60342 r65982  
    7171
    7272    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    73     virtual int tagPriority() const { return 10; }
    74    
     73
    7574    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
    7675    virtual void parseMappedAttribute(Attribute*);
  • trunk/WebCore/html/HTMLCanvasElement.cpp

    r65921 r65982  
    109109}
    110110
    111 int HTMLCanvasElement::tagPriority() const
    112 {
    113     Settings* settings = document()->settings();
    114     if (settings && settings->usesDashboardBackwardCompatibilityMode())
    115         return 0;
    116 
    117     return HTMLElement::tagPriority();
    118 }
    119 
    120111#endif
    121112
  • trunk/WebCore/html/HTMLCanvasElement.h

    r65449 r65982  
    121121#if ENABLE(DASHBOARD_SUPPORT)
    122122    virtual HTMLTagStatus endTagRequirement() const;
    123     virtual int tagPriority() const;
    124123#endif
    125124
  • trunk/WebCore/html/HTMLDListElement.h

    r61959 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    38     virtual int tagPriority() const { return 5; }
    3938};
    4039
  • trunk/WebCore/html/HTMLDataGridCellElement.h

    r60342 r65982  
    5656
    5757    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    58     virtual int tagPriority() const { return 0; }
    5958   
    6059};
  • trunk/WebCore/html/HTMLDataGridColElement.h

    r60342 r65982  
    6262
    6363    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    64     virtual int tagPriority() const { return 0; }
    6564    virtual void insertedIntoTree(bool /*deep*/);
    6665    virtual void removedFromTree(bool /*deep*/);
  • trunk/WebCore/html/HTMLDataGridElement.h

    r60342 r65982  
    5757    HTMLDataGridElement(const QualifiedName&, Document*);
    5858
    59     virtual int tagPriority() const { return 6; } // Same as <select>s
    6059    virtual bool checkDTD(const Node*);
    6160
  • trunk/WebCore/html/HTMLDataGridRowElement.h

    r60342 r65982  
    4949    HTMLDataGridRowElement(const QualifiedName&, Document*);
    5050
    51     virtual int tagPriority() const { return 2; } // Same as <option>s.
    5251    virtual bool checkDTD(const Node*);
    5352};
  • trunk/WebCore/html/HTMLDirectoryElement.h

    r61959 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    38     virtual int tagPriority() const { return 5; }
    3938};
    4039
  • trunk/WebCore/html/HTMLDivElement.h

    r61959 r65982  
    3838private:
    3939    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    40     virtual int tagPriority() const { return 5; }
    4140
    4241    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLElement.cpp

    r65868 r65982  
    7979    // Same values as <span>.  This way custom tag name elements will behave like inline spans.
    8080    return TagStatusRequired;
    81 }
    82 
    83 struct Empty1IntHashTraits : HashTraits<int> {
    84     static const bool emptyValueIsZero = false;
    85     static int emptyValue() { return 1; }
    86 };
    87 typedef HashMap<AtomicStringImpl*, int, DefaultHash<AtomicStringImpl*>::Hash, HashTraits<AtomicStringImpl*>, Empty1IntHashTraits> TagPriorityMap;
    88 
    89 static const TagPriorityMap* createTagPriorityMap()
    90 {
    91     TagPriorityMap* map = new TagPriorityMap;
    92 
    93     map->add(wbrTag.localName().impl(), 0);
    94 
    95     map->add(addressTag.localName().impl(), 3);
    96     map->add(ddTag.localName().impl(), 3);
    97     map->add(dtTag.localName().impl(), 3);
    98     map->add(noscriptTag.localName().impl(), 3);
    99     map->add(rpTag.localName().impl(), 3);
    100     map->add(rtTag.localName().impl(), 3);
    101 
    102     // 5 is same as <div>'s priority.
    103     map->add(articleTag.localName().impl(), 5);
    104     map->add(asideTag.localName().impl(), 5);
    105     map->add(centerTag.localName().impl(), 5);
    106     map->add(footerTag.localName().impl(), 5);
    107     map->add(headerTag.localName().impl(), 5);
    108     map->add(hgroupTag.localName().impl(), 5);
    109     map->add(nobrTag.localName().impl(), 5);
    110     map->add(rubyTag.localName().impl(), 5);
    111     map->add(navTag.localName().impl(), 5);
    112     map->add(sectionTag.localName().impl(), 5);
    113 
    114     map->add(noembedTag.localName().impl(), 10);
    115     map->add(noframesTag.localName().impl(), 10);
    116 
    117     // TagPriorityMap returns 1 for unregistered tags. It's same as <span>.
    118     // This way custom tag name elements will behave like inline spans.
    119     return map;
    120 }
    121 
    122 int HTMLElement::tagPriority() const
    123 {
    124     static const TagPriorityMap* tagPriorityMap = createTagPriorityMap();
    125     return tagPriorityMap->get(localName().impl());
    12681}
    12782
  • trunk/WebCore/html/HTMLElement.h

    r65372 r65982  
    7474
    7575    virtual HTMLTagStatus endTagRequirement() const;
    76     virtual int tagPriority() const;
    7776
    7877    virtual bool rendererIsNeeded(RenderStyle*);
  • trunk/WebCore/html/HTMLEmbedElement.h

    r59773 r65982  
    3838
    3939    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    40     virtual int tagPriority() const { return 0; }
    4140
    4241    virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
  • trunk/WebCore/html/HTMLFieldSetElement.h

    r60342 r65982  
    3636    HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement*);
    3737
    38     virtual int tagPriority() const { return 3; }
    3938    virtual bool checkDTD(const Node* newChild);
    4039
  • trunk/WebCore/html/HTMLFontElement.h

    r61959 r65982  
    3939   
    4040    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    41     virtual int tagPriority() const { return 1; }
    4241
    4342    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLFormControlElement.h

    r61959 r65982  
    124124private:
    125125    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    126     virtual int tagPriority() const { return 1; }
    127126
    128127    virtual const AtomicString& formControlName() const;
  • trunk/WebCore/html/HTMLFormElement.h

    r63999 r65982  
    116116
    117117    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    118     virtual int tagPriority() const { return 3; }
    119118
    120119    virtual bool rendererIsNeeded(RenderStyle*);
  • trunk/WebCore/html/HTMLFrameElement.h

    r61959 r65982  
    4141
    4242    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    43     virtual int tagPriority() const { return 0; }
    4443 
    4544    virtual void attach();
  • trunk/WebCore/html/HTMLFrameSetElement.h

    r61959 r65982  
    6969
    7070    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    71     virtual int tagPriority() const { return 10; }
    7271    virtual bool checkDTD(const Node* newChild);
    7372
  • trunk/WebCore/html/HTMLHRElement.h

    r61959 r65982  
    3737   
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    39     virtual int tagPriority() const { return 0; }
    4039   
    4140    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLHeadElement.h

    r61959 r65982  
    3434    static PassRefPtr<HTMLHeadElement> create(const QualifiedName&, Document*);
    3535
    36     virtual int tagPriority() const { return 10; }
    37 
    3836private:
    3937    HTMLHeadElement(const QualifiedName&, Document*);
  • trunk/WebCore/html/HTMLHeadingElement.h

    r61959 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    38     virtual int tagPriority() const { return 5; }
    3938    virtual bool checkDTD(const Node* newChild);
    4039};
  • trunk/WebCore/html/HTMLHtmlElement.h

    r61959 r65982  
    3838
    3939    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    40     virtual int tagPriority() const { return 11; }
    4140    virtual bool checkDTD(const Node* newChild);
    4241
  • trunk/WebCore/html/HTMLIFrameElement.h

    r59773 r65982  
    3737
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    39     virtual int tagPriority() const { return 1; }
    4039
    4140    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLImageElement.h

    r61959 r65982  
    8282private:
    8383    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    84     virtual int tagPriority() const { return 0; }
    8584
    8685    virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
  • trunk/WebCore/html/HTMLInputElement.h

    r65335 r65982  
    220220
    221221    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    222     virtual int tagPriority() const { return 0; }
    223222
    224223    virtual bool isKeyboardFocusable(KeyboardEvent*) const;
  • trunk/WebCore/html/HTMLIsIndexElement.h

    r61959 r65982  
    3838
    3939    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    40     virtual int tagPriority() const { return 0; }
    4140    virtual bool canTriggerImplicitSubmission() const { return true; }
    4241
  • trunk/WebCore/html/HTMLKeygenElement.h

    r60361 r65982  
    3636    HTMLKeygenElement(const QualifiedName&, Document*, HTMLFormElement*);
    3737
    38     virtual int tagPriority() const { return 0; }
    3938    virtual const AtomicString& formControlType() const;
    4039    virtual bool isEnumeratable() const { return false; }
  • trunk/WebCore/html/HTMLLIElement.h

    r61959 r65982  
    3737
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
    39     virtual int tagPriority() const { return 3; }
    4039
    4140    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLLabelElement.h

    r61959 r65982  
    3939    HTMLLabelElement(const QualifiedName&, Document*);
    4040
    41     virtual int tagPriority() const { return 5; }
    42 
    4341    virtual bool isFocusable() const;
    4442
  • trunk/WebCore/html/HTMLLinkElement.h

    r65281 r65982  
    7777private:
    7878    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    79     virtual int tagPriority() const { return 0; }
    8079
    8180    virtual void parseMappedAttribute(Attribute*);
  • trunk/WebCore/html/HTMLMapElement.h

    r61959 r65982  
    4949
    5050    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    51     virtual int tagPriority() const { return 1; }
    5251    virtual bool checkDTD(const Node*);
    5352
  • trunk/WebCore/html/HTMLMarqueeElement.h

    r60361 r65982  
    4646   
    4747    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    48     virtual int tagPriority() const { return 3; }
    4948
    5049    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLMenuElement.h

    r61959 r65982  
    3636   
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    38     virtual int tagPriority() const { return 5; }
    3938};
    4039
  • trunk/WebCore/html/HTMLMetaElement.h

    r61963 r65982  
    4040
    4141    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    42     virtual int tagPriority() const { return 0; }
    4342
    4443    virtual void parseMappedAttribute(Attribute*);
  • trunk/WebCore/html/HTMLModElement.h

    r61959 r65982  
    3737
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    39     virtual int tagPriority() const { return 1; }
    4039};
    4140
  • trunk/WebCore/html/HTMLOListElement.h

    r61959 r65982  
    4040       
    4141    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    42     virtual int tagPriority() const { return 5; }
    4342
    4443    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLObjectElement.h

    r61959 r65982  
    4545    HTMLObjectElement(const QualifiedName&, Document*, bool createdByParser);
    4646
    47     virtual int tagPriority() const { return 5; }
    48 
    4947    virtual void parseMappedAttribute(Attribute*);
    5048
  • trunk/WebCore/html/HTMLOptionElement.h

    r61963 r65982  
    6868
    6969    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
    70     virtual int tagPriority() const { return 2; }
    7170    virtual bool checkDTD(const Node* newChild);
    7271    virtual bool supportsFocus() const;
  • trunk/WebCore/html/HTMLParagraphElement.h

    r61959 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    38     virtual int tagPriority() const { return 3; }
    3938    virtual bool checkDTD(const Node* newChild);
    4039
  • trunk/WebCore/html/HTMLParamElement.h

    r61959 r65982  
    3939
    4040    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    41     virtual int tagPriority() const { return 0; }
    4241
    4342    virtual void parseMappedAttribute(Attribute*);
  • trunk/WebCore/html/HTMLPreElement.h

    r61959 r65982  
    3636
    3737    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    38     virtual int tagPriority() const { return 5; }
    3938
    4039    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLQuoteElement.h

    r65021 r65982  
    3838   
    3939    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    40     virtual int tagPriority() const { return 1; }
    4140
    4241    virtual void insertedIntoDocument();
  • trunk/WebCore/html/HTMLScriptElement.h

    r61959 r65982  
    5151
    5252    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    53     virtual int tagPriority() const { return 1; }
    5453    virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
    5554
  • trunk/WebCore/html/HTMLSelectElement.h

    r60361 r65982  
    8787
    8888private:
    89     virtual int tagPriority() const { return 6; }
    9089    virtual bool checkDTD(const Node* newChild);
    9190
  • trunk/WebCore/html/HTMLSourceElement.h

    r65170 r65982  
    5151
    5252    virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; }
    53     virtual int tagPriority() const { return 0; }
    5453   
    5554    virtual void insertedIntoTree(bool);
  • trunk/WebCore/html/HTMLStyleElement.h

    r64420 r65982  
    4343
    4444    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    45     virtual int tagPriority() const { return 1; }
    4645    virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
    4746
  • trunk/WebCore/html/HTMLTableCaptionElement.h

    r61959 r65982  
    3939   
    4040    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    41     virtual int tagPriority() const { return 5; }
    4241   
    4342    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLTableCellElement.h

    r61959 r65982  
    5858
    5959    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
    60     virtual int tagPriority() const { return 6; }
    6160
    6261    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLTableColElement.cpp

    r61959 r65982  
    5151{
    5252    return hasLocalName(colTag) ? TagStatusForbidden : TagStatusOptional;
    53 }
    54 
    55 int HTMLTableColElement::tagPriority() const
    56 {
    57     return hasLocalName(colTag) ? 0 : 1;
    5853}
    5954
  • trunk/WebCore/html/HTMLTableColElement.h

    r61959 r65982  
    4444
    4545    virtual HTMLTagStatus endTagRequirement() const;
    46     virtual int tagPriority() const;
    4746    virtual bool checkDTD(const Node*);
    4847    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLTableElement.h

    r62079 r65982  
    7575
    7676    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    77     virtual int tagPriority() const { return 9; }
    7877    virtual bool checkDTD(const Node*);
    7978
  • trunk/WebCore/html/HTMLTableRowElement.h

    r62079 r65982  
    5454
    5555    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
    56     virtual int tagPriority() const { return 7; }
    5756    virtual bool checkDTD(const Node*);
    5857};
  • trunk/WebCore/html/HTMLTableSectionElement.h

    r62079 r65982  
    6060
    6161    virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
    62     virtual int tagPriority() const { return 8; }
    6362    virtual bool checkDTD(const Node*);
    6463    virtual bool canHaveAdditionalAttributeStyleDecls() const { return true; }
  • trunk/WebCore/html/HTMLUListElement.h

    r61959 r65982  
    3737
    3838    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
    39     virtual int tagPriority() const { return 5; }
    4039
    4140    virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
  • trunk/WebCore/html/HTMLVideoElement.h

    r64884 r65982  
    6464    HTMLVideoElement(const QualifiedName&, Document*);
    6565
    66     virtual int tagPriority() const { return 5; }
    6766    virtual bool rendererIsNeeded(RenderStyle*);
    6867#if !ENABLE(PLUGIN_PROXY_FOR_VIDEO)
Note: See TracChangeset for help on using the changeset viewer.