⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 160157 in webkit


Ignore:
Timestamp:
Dec 4, 2013, 7:57:12 PM (13 years ago)
Author:
rniwa@webkit.org
Message:

bgColor, setBgColor, alinkColor, setAlinkColor, and etc... on HTMLBodyElement are useless
https://bugs.webkit.org/show_bug.cgi?id=125208

Rubber-stamped by Anders Carlsson.

Address Darin's comment to use fastGetAttribute instead of getAttribute.

  • html/HTMLDocument.cpp:

(WebCore::HTMLDocument::bgColor):
(WebCore::HTMLDocument::fgColor):
(WebCore::HTMLDocument::alinkColor):
(WebCore::HTMLDocument::linkColor):
(WebCore::HTMLDocument::vlinkColor):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160152 r160157  
     12013-12-04  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        bgColor, setBgColor, alinkColor, setAlinkColor, and etc... on HTMLBodyElement are useless
     4        https://bugs.webkit.org/show_bug.cgi?id=125208
     5
     6        Rubber-stamped by Anders Carlsson.
     7
     8        Address Darin's comment to use fastGetAttribute instead of getAttribute.
     9
     10        * html/HTMLDocument.cpp:
     11        (WebCore::HTMLDocument::bgColor):
     12        (WebCore::HTMLDocument::fgColor):
     13        (WebCore::HTMLDocument::alinkColor):
     14        (WebCore::HTMLDocument::linkColor):
     15        (WebCore::HTMLDocument::vlinkColor):
     16
    1172013-12-04  Brian J. Burg  <burg@cs.washington.edu>
    218
  • trunk/Source/WebCore/html/HTMLDocument.cpp

    r160072 r160157  
    164164    if (!bodyElement || !isHTMLBodyElement(bodyElement))
    165165        return emptyAtom;
    166     return bodyElement->getAttribute(bgcolorAttr);
     166    return bodyElement->fastGetAttribute(bgcolorAttr);
    167167}
    168168
     
    180180    if (!bodyElement || !isHTMLBodyElement(bodyElement))
    181181        return emptyAtom;
    182     return bodyElement->getAttribute(textAttr);
     182    return bodyElement->fastGetAttribute(textAttr);
    183183}
    184184
     
    196196    if (!bodyElement || !isHTMLBodyElement(bodyElement))
    197197        return emptyAtom;
    198     return bodyElement->getAttribute(alinkAttr);
     198    return bodyElement->fastGetAttribute(alinkAttr);
    199199}
    200200
     
    212212    if (!bodyElement || !isHTMLBodyElement(bodyElement))
    213213        return emptyAtom;
    214     return bodyElement->getAttribute(linkAttr);
     214    return bodyElement->fastGetAttribute(linkAttr);
    215215}
    216216
     
    228228    if (!bodyElement || !isHTMLBodyElement(bodyElement))
    229229        return emptyAtom;
    230     return bodyElement->getAttribute(vlinkAttr);
     230    return bodyElement->fastGetAttribute(vlinkAttr);
    231231}
    232232
Note: See TracChangeset for help on using the changeset viewer.