Changeset 160157 in webkit
- Timestamp:
- Dec 4, 2013, 7:57:12 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
html/HTMLDocument.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r160152 r160157 1 2013-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 1 17 2013-12-04 Brian J. Burg <burg@cs.washington.edu> 2 18 -
trunk/Source/WebCore/html/HTMLDocument.cpp
r160072 r160157 164 164 if (!bodyElement || !isHTMLBodyElement(bodyElement)) 165 165 return emptyAtom; 166 return bodyElement-> getAttribute(bgcolorAttr);166 return bodyElement->fastGetAttribute(bgcolorAttr); 167 167 } 168 168 … … 180 180 if (!bodyElement || !isHTMLBodyElement(bodyElement)) 181 181 return emptyAtom; 182 return bodyElement-> getAttribute(textAttr);182 return bodyElement->fastGetAttribute(textAttr); 183 183 } 184 184 … … 196 196 if (!bodyElement || !isHTMLBodyElement(bodyElement)) 197 197 return emptyAtom; 198 return bodyElement-> getAttribute(alinkAttr);198 return bodyElement->fastGetAttribute(alinkAttr); 199 199 } 200 200 … … 212 212 if (!bodyElement || !isHTMLBodyElement(bodyElement)) 213 213 return emptyAtom; 214 return bodyElement-> getAttribute(linkAttr);214 return bodyElement->fastGetAttribute(linkAttr); 215 215 } 216 216 … … 228 228 if (!bodyElement || !isHTMLBodyElement(bodyElement)) 229 229 return emptyAtom; 230 return bodyElement-> getAttribute(vlinkAttr);230 return bodyElement->fastGetAttribute(vlinkAttr); 231 231 } 232 232
Note:
See TracChangeset
for help on using the changeset viewer.