Changeset 116430 in webkit
- Timestamp:
- May 8, 2012 9:27:04 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116427 r116430 1 2012-05-08 Andreas Kling <kling@webkit.org> 2 3 Element: isURLAttribute() should take a const Attribute&. 4 <http://webkit.org/b/85890> 5 6 Reviewed by Anders Carlsson. 7 8 Change isURLAttribute(Attribute*) to isURLAttribute(const Attribute&) to enforce 9 the fact that the Attribute can't be null, and shouldn't be mutated, at compile-time. 10 Also sprinkle OVERRIDE while we're at it. 11 12 * dom/Element.cpp: 13 (WebCore::Element::getURLAttribute): 14 (WebCore::Element::getNonEmptyURLAttribute): 15 * dom/Element.h: 16 (WebCore::Element::isURLAttribute): 17 * editing/MarkupAccumulator.cpp: 18 (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue): 19 (WebCore::MarkupAccumulator::appendAttribute): 20 * editing/markup.cpp: 21 (WebCore::completeURLs): 22 * html/HTMLAnchorElement.cpp: 23 (WebCore::HTMLAnchorElement::isURLAttribute): 24 * html/HTMLAnchorElement.h: 25 * html/HTMLBaseElement.cpp: 26 (WebCore::HTMLBaseElement::isURLAttribute): 27 * html/HTMLBaseElement.h: 28 * html/HTMLBodyElement.cpp: 29 (WebCore::HTMLBodyElement::isURLAttribute): 30 * html/HTMLBodyElement.h: 31 * html/HTMLButtonElement.cpp: 32 (WebCore::HTMLButtonElement::isURLAttribute): 33 * html/HTMLButtonElement.h: 34 * html/HTMLElement.cpp: 35 (WebCore::HTMLElement::isURLAttribute): 36 * html/HTMLElement.h: 37 * html/HTMLEmbedElement.cpp: 38 (WebCore::HTMLEmbedElement::isURLAttribute): 39 * html/HTMLEmbedElement.h: 40 * html/HTMLFormElement.cpp: 41 (WebCore::HTMLFormElement::isURLAttribute): 42 * html/HTMLFormElement.h: 43 * html/HTMLFrameElementBase.cpp: 44 (WebCore::HTMLFrameElementBase::isURLAttribute): 45 * html/HTMLFrameElementBase.h: 46 (HTMLFrameElementBase): 47 * html/HTMLHtmlElement.cpp: 48 (WebCore::HTMLHtmlElement::isURLAttribute): 49 * html/HTMLHtmlElement.h: 50 * html/HTMLImageElement.cpp: 51 (WebCore::HTMLImageElement::isURLAttribute): 52 * html/HTMLImageElement.h: 53 * html/HTMLInputElement.cpp: 54 (WebCore::HTMLInputElement::isURLAttribute): 55 * html/HTMLInputElement.h: 56 * html/HTMLLinkElement.cpp: 57 (WebCore::HTMLLinkElement::isURLAttribute): 58 * html/HTMLLinkElement.h: 59 * html/HTMLMediaElement.cpp: 60 (WebCore::HTMLMediaElement::isURLAttribute): 61 * html/HTMLMediaElement.h: 62 * html/HTMLModElement.cpp: 63 (WebCore::HTMLModElement::isURLAttribute): 64 * html/HTMLModElement.h: 65 * html/HTMLObjectElement.cpp: 66 (WebCore::HTMLObjectElement::isURLAttribute): 67 * html/HTMLObjectElement.h: 68 * html/HTMLParamElement.cpp: 69 (WebCore::HTMLParamElement::isURLAttribute): 70 * html/HTMLParamElement.h: 71 * html/HTMLQuoteElement.cpp: 72 (WebCore::HTMLQuoteElement::isURLAttribute): 73 * html/HTMLQuoteElement.h: 74 * html/HTMLScriptElement.cpp: 75 (WebCore::HTMLScriptElement::isURLAttribute): 76 * html/HTMLScriptElement.h: 77 * html/HTMLSourceElement.cpp: 78 (WebCore::HTMLSourceElement::isURLAttribute): 79 * html/HTMLSourceElement.h: 80 * html/HTMLTableCellElement.cpp: 81 (WebCore::HTMLTableCellElement::isURLAttribute): 82 * html/HTMLTableCellElement.h: 83 * html/HTMLTableElement.cpp: 84 (WebCore::HTMLTableElement::isURLAttribute): 85 * html/HTMLTableElement.h: 86 * html/HTMLTrackElement.cpp: 87 (WebCore::HTMLTrackElement::isURLAttribute): 88 * html/HTMLTrackElement.h: 89 * html/HTMLVideoElement.cpp: 90 (WebCore::HTMLVideoElement::isURLAttribute): 91 * html/HTMLVideoElement.h: 92 * svg/SVGScriptElement.cpp: 93 (WebCore::SVGScriptElement::isURLAttribute): 94 * svg/SVGScriptElement.h: 95 1 96 2012-05-08 Stephen Chenney <schenney@chromium.org> 2 97 -
trunk/Source/WebCore/dom/Element.cpp
r116423 r116430 867 867 } 868 868 869 bool Element::isURLAttribute(Attribute*) const870 {871 return false;872 }873 874 869 const QualifiedName& Element::imageSourceAttributeName() const 875 870 { … … 1842 1837 if (m_attributeData) { 1843 1838 if (Attribute* attribute = getAttributeItem(name)) 1844 ASSERT(isURLAttribute( attribute));1839 ASSERT(isURLAttribute(*attribute)); 1845 1840 } 1846 1841 #endif … … 1853 1848 if (m_attributeData) { 1854 1849 if (Attribute* attribute = getAttributeItem(name)) 1855 ASSERT(isURLAttribute( attribute));1850 ASSERT(isURLAttribute(*attribute)); 1856 1851 } 1857 1852 #endif -
trunk/Source/WebCore/dom/Element.h
r116423 r116430 282 282 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } 283 283 284 virtual bool isURLAttribute( Attribute*) const;284 virtual bool isURLAttribute(const Attribute&) const { return false; } 285 285 286 286 KURL getURLAttribute(const QualifiedName&) const; -
trunk/Source/WebCore/editing/MarkupAccumulator.cpp
r114059 r116430 171 171 void MarkupAccumulator::appendQuotedURLAttributeValue(StringBuilder& result, const Element* element, const Attribute& attribute) 172 172 { 173 ASSERT(element->isURLAttribute( const_cast<Attribute*>(&attribute)));173 ASSERT(element->isURLAttribute(attribute)); 174 174 const String resolvedURLString = resolveURLIfNeeded(element, attribute.value()); 175 175 UChar quoteChar = '"'; … … 420 420 result.append('='); 421 421 422 if (element->isURLAttribute( const_cast<Attribute*>(&attribute)))422 if (element->isURLAttribute(attribute)) 423 423 appendQuotedURLAttributeValue(result, element, attribute); 424 424 else { -
trunk/Source/WebCore/editing/markup.cpp
r115669 r116430 111 111 for (unsigned i = 0; i < length; i++) { 112 112 Attribute* attribute = e->attributeItem(i); 113 if (e->isURLAttribute( attribute))113 if (e->isURLAttribute(*attribute)) 114 114 changes.append(AttributeChange(e, attribute->name(), KURL(parsedBaseURL, attribute->value()).string())); 115 115 } -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r114870 r116430 246 246 } 247 247 248 bool HTMLAnchorElement::isURLAttribute( Attribute *attr) const249 { 250 return attr ->name() == hrefAttr || HTMLElement::isURLAttribute(attr);248 bool HTMLAnchorElement::isURLAttribute(const Attribute& attribute) const 249 { 250 return attribute.name() == hrefAttr || HTMLElement::isURLAttribute(attribute); 251 251 } 252 252 -
trunk/Source/WebCore/html/HTMLAnchorElement.h
r106769 r116430 113 113 virtual void setActive(bool active = true, bool pause = false); 114 114 virtual void accessKeyAction(bool sendMouseEvents); 115 virtual bool isURLAttribute( Attribute*) const;115 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 116 116 virtual bool canStartSelection() const; 117 117 virtual String target() const; -
trunk/Source/WebCore/html/HTMLBaseElement.cpp
r114351 r116430 66 66 } 67 67 68 bool HTMLBaseElement::isURLAttribute( Attribute*attribute) const68 bool HTMLBaseElement::isURLAttribute(const Attribute& attribute) const 69 69 { 70 return attribute ->name() == hrefAttr || HTMLElement::isURLAttribute(attribute);70 return attribute.name() == hrefAttr || HTMLElement::isURLAttribute(attribute); 71 71 } 72 72 -
trunk/Source/WebCore/html/HTMLBaseElement.h
r114351 r116430 36 36 37 37 virtual String target() const; 38 virtual bool isURLAttribute( Attribute*) const;38 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 39 39 virtual void parseAttribute(Attribute*) OVERRIDE; 40 40 virtual InsertionNotificationRequest insertedInto(Node*) OVERRIDE; -
trunk/Source/WebCore/html/HTMLBodyElement.cpp
r115819 r116430 184 184 } 185 185 186 bool HTMLBodyElement::isURLAttribute( Attribute *attr) const187 { 188 return attr ->name() == backgroundAttr || HTMLElement::isURLAttribute(attr);186 bool HTMLBodyElement::isURLAttribute(const Attribute& attribute) const 187 { 188 return attribute.name() == backgroundAttr || HTMLElement::isURLAttribute(attribute); 189 189 } 190 190 -
trunk/Source/WebCore/html/HTMLBodyElement.h
r114351 r116430 78 78 virtual void didNotifyDescendantInseretions(Node*) OVERRIDE; 79 79 80 virtual bool isURLAttribute( Attribute*) const;80 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 81 81 82 82 virtual bool supportsFocus() const; -
trunk/Source/WebCore/html/HTMLButtonElement.cpp
r109149 r116430 178 178 } 179 179 180 bool HTMLButtonElement::isURLAttribute( Attribute* attr) const180 bool HTMLButtonElement::isURLAttribute(const Attribute& attribute) const 181 181 { 182 return attr ->name() == formactionAttr || HTMLFormControlElement::isURLAttribute(attr);182 return attribute.name() == formactionAttr || HTMLFormControlElement::isURLAttribute(attribute); 183 183 } 184 184 -
trunk/Source/WebCore/html/HTMLButtonElement.h
r110927 r116430 57 57 58 58 virtual void accessKeyAction(bool sendMouseEvents); 59 virtual bool isURLAttribute( Attribute*) const;59 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 60 60 61 61 virtual bool canStartSelection() const { return false; } -
trunk/Source/WebCore/html/HTMLElement.cpp
r113647 r116430 957 957 } 958 958 959 bool HTMLElement::isURLAttribute( Attribute*attribute) const959 bool HTMLElement::isURLAttribute(const Attribute& attribute) const 960 960 { 961 961 #if ENABLE(MICRODATA) 962 return attribute ->name() == itemidAttr;962 return attribute.name() == itemidAttr; 963 963 #else 964 964 UNUSED_PARAM(attribute); -
trunk/Source/WebCore/html/HTMLElement.h
r113187 r116430 122 122 void calculateAndAdjustDirectionality(); 123 123 124 virtual bool isURLAttribute( Attribute*) const;124 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 125 125 126 126 private: -
trunk/Source/WebCore/html/HTMLEmbedElement.cpp
r109149 r116430 209 209 } 210 210 211 bool HTMLEmbedElement::isURLAttribute( Attribute* attr) const212 { 213 return attr ->name() == srcAttr || HTMLPlugInImageElement::isURLAttribute(attr);211 bool HTMLEmbedElement::isURLAttribute(const Attribute& attribute) const 212 { 213 return attribute.name() == srcAttr || HTMLPlugInImageElement::isURLAttribute(attribute); 214 214 } 215 215 -
trunk/Source/WebCore/html/HTMLEmbedElement.h
r109149 r116430 41 41 virtual bool rendererIsNeeded(const NodeRenderingContext&); 42 42 43 virtual bool isURLAttribute( Attribute*) const;43 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 44 44 virtual const QualifiedName& imageSourceAttributeName() const; 45 45 -
trunk/Source/WebCore/html/HTMLFormElement.cpp
r115926 r116430 516 516 } 517 517 518 bool HTMLFormElement::isURLAttribute( Attribute* attr) const519 { 520 return attr ->name() == actionAttr || HTMLElement::isURLAttribute(attr);518 bool HTMLFormElement::isURLAttribute(const Attribute& attribute) const 519 { 520 return attribute.name() == actionAttr || HTMLElement::isURLAttribute(attribute); 521 521 } 522 522 -
trunk/Source/WebCore/html/HTMLFormElement.h
r115926 r116430 125 125 126 126 virtual void parseAttribute(Attribute*) OVERRIDE; 127 128 virtual bool isURLAttribute(Attribute*) const; 127 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 129 128 130 129 virtual void documentDidResumeFromPageCache(); -
trunk/Source/WebCore/html/HTMLFrameElementBase.cpp
r114351 r116430 226 226 } 227 227 228 bool HTMLFrameElementBase::isURLAttribute( Attribute *attr) const229 { 230 return attr ->name() == srcAttr || HTMLFrameOwnerElement::isURLAttribute(attr);228 bool HTMLFrameElementBase::isURLAttribute(const Attribute& attribute) const 229 { 230 return attribute.name() == srcAttr || HTMLFrameOwnerElement::isURLAttribute(attribute); 231 231 } 232 232 -
trunk/Source/WebCore/html/HTMLFrameElementBase.h
r114351 r116430 63 63 virtual void setFocus(bool); 64 64 65 virtual bool isURLAttribute( Attribute*) const;65 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 66 66 virtual bool isFrameElementBase() const { return true; } 67 67 -
trunk/Source/WebCore/html/HTMLHtmlElement.cpp
r99742 r116430 52 52 } 53 53 54 bool HTMLHtmlElement::isURLAttribute( Attribute*attribute) const54 bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const 55 55 { 56 return attribute ->name() == manifestAttr || HTMLElement::isURLAttribute(attribute);56 return attribute.name() == manifestAttr || HTMLElement::isURLAttribute(attribute); 57 57 } 58 58 -
trunk/Source/WebCore/html/HTMLHtmlElement.h
r95919 r116430 39 39 HTMLHtmlElement(const QualifiedName&, Document*); 40 40 41 virtual bool isURLAttribute( Attribute*) const;41 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 42 42 }; 43 43 -
trunk/Source/WebCore/html/HTMLImageElement.cpp
r114351 r116430 260 260 } 261 261 262 bool HTMLImageElement::isURLAttribute( Attribute* attr) const263 { 264 return attr ->name() == srcAttr265 || attr ->name() == lowsrcAttr266 || attr ->name() == longdescAttr267 || (attr ->name() == usemapAttr && attr->value().string()[0] != '#')268 || HTMLElement::isURLAttribute(attr );262 bool HTMLImageElement::isURLAttribute(const Attribute& attribute) const 263 { 264 return attribute.name() == srcAttr 265 || attribute.name() == lowsrcAttr 266 || attribute.name() == longdescAttr 267 || (attribute.name() == usemapAttr && attribute.value().string()[0] != '#') 268 || HTMLElement::isURLAttribute(attribute); 269 269 } 270 270 -
trunk/Source/WebCore/html/HTMLImageElement.h
r114351 r116430 94 94 virtual bool canStartSelection() const { return false; } 95 95 96 virtual bool isURLAttribute( Attribute*) const;96 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 97 97 98 98 virtual bool draggable() const; -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r116389 r116430 1236 1236 } 1237 1237 1238 bool HTMLInputElement::isURLAttribute( Attribute *attr) const1239 { 1240 return attr ->name() == srcAttr || attr->name() == formactionAttr || HTMLTextFormControlElement::isURLAttribute(attr);1238 bool HTMLInputElement::isURLAttribute(const Attribute& attribute) const 1239 { 1240 return attribute.name() == srcAttr || attribute.name() == formactionAttr || HTMLTextFormControlElement::isURLAttribute(attribute); 1241 1241 } 1242 1242 -
trunk/Source/WebCore/html/HTMLInputElement.h
r116389 r116430 299 299 virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch); 300 300 301 virtual bool isURLAttribute( Attribute*) const;301 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 302 302 303 303 virtual bool hasUnacceptableValue() const; -
trunk/Source/WebCore/html/HTMLLinkElement.cpp
r115951 r116430 391 391 } 392 392 393 bool HTMLLinkElement::isURLAttribute( Attribute *attr) const394 { 395 return attr ->name() == hrefAttr || HTMLElement::isURLAttribute(attr);393 bool HTMLLinkElement::isURLAttribute(const Attribute& attribute) const 394 { 395 return attribute.name() == hrefAttr || HTMLElement::isURLAttribute(attribute); 396 396 } 397 397 -
trunk/Source/WebCore/html/HTMLLinkElement.h
r114351 r116430 92 92 void setDisabledState(bool); 93 93 94 virtual bool isURLAttribute( Attribute*) const;94 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 95 95 96 96 private: -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r116277 r116430 4022 4022 } 4023 4023 4024 bool HTMLMediaElement::isURLAttribute( Attribute*attribute) const4025 { 4026 return attribute ->name() == srcAttr || HTMLElement::isURLAttribute(attribute);4024 bool HTMLMediaElement::isURLAttribute(const Attribute& attribute) const 4025 { 4026 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute); 4027 4027 } 4028 4028 -
trunk/Source/WebCore/html/HTMLMediaElement.h
r114390 r116430 326 326 virtual void parseAttribute(Attribute*) OVERRIDE; 327 327 virtual void finishParsingChildren(); 328 virtual bool isURLAttribute( Attribute*) const;328 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 329 329 virtual void attach(); 330 330 -
trunk/Source/WebCore/html/HTMLModElement.cpp
r99742 r116430 40 40 } 41 41 42 bool HTMLModElement::isURLAttribute( Attribute*attribute) const42 bool HTMLModElement::isURLAttribute(const Attribute& attribute) const 43 43 { 44 return attribute ->name() == citeAttr || HTMLElement::isURLAttribute(attribute);44 return attribute.name() == citeAttr || HTMLElement::isURLAttribute(attribute); 45 45 } 46 46 -
trunk/Source/WebCore/html/HTMLModElement.h
r66327 r116430 36 36 HTMLModElement(const QualifiedName&, Document*); 37 37 38 virtual bool isURLAttribute( Attribute*) const;38 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 39 39 }; 40 40 -
trunk/Source/WebCore/html/HTMLObjectElement.cpp
r115669 r116430 352 352 } 353 353 354 bool HTMLObjectElement::isURLAttribute( Attribute *attr) const355 { 356 return attr ->name() == dataAttr || (attr->name() == usemapAttr && attr->value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(attr);354 bool HTMLObjectElement::isURLAttribute(const Attribute& attribute) const 355 { 356 return attribute.name() == dataAttr || (attribute.name() == usemapAttr && attribute.value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(attribute); 357 357 } 358 358 -
trunk/Source/WebCore/html/HTMLObjectElement.h
r114351 r116430 79 79 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 80 80 81 virtual bool isURLAttribute( Attribute*) const;81 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 82 82 virtual const QualifiedName& imageSourceAttributeName() const; 83 83 -
trunk/Source/WebCore/html/HTMLParamElement.cpp
r108890 r116430 60 60 } 61 61 62 bool HTMLParamElement::isURLAttribute( Attribute* attr) const62 bool HTMLParamElement::isURLAttribute(const Attribute& attribute) const 63 63 { 64 if (attr ->name() == valueAttr && isURLParameter(name()))64 if (attribute.name() == valueAttr && isURLParameter(name())) 65 65 return true; 66 return HTMLElement::isURLAttribute(attr );66 return HTMLElement::isURLAttribute(attribute); 67 67 } 68 68 -
trunk/Source/WebCore/html/HTMLParamElement.h
r108890 r116430 40 40 HTMLParamElement(const QualifiedName&, Document*); 41 41 42 virtual bool isURLAttribute( Attribute*) const;42 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 43 43 44 44 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; -
trunk/Source/WebCore/html/HTMLQuoteElement.cpp
r114351 r116430 50 50 } 51 51 52 bool HTMLQuoteElement::isURLAttribute( Attribute*attribute) const52 bool HTMLQuoteElement::isURLAttribute(const Attribute& attribute) const 53 53 { 54 return attribute ->name() == citeAttr || HTMLElement::isURLAttribute(attribute);54 return attribute.name() == citeAttr || HTMLElement::isURLAttribute(attribute); 55 55 } 56 56 -
trunk/Source/WebCore/html/HTMLQuoteElement.h
r114351 r116430 38 38 39 39 virtual InsertionNotificationRequest insertedInto(Node*) OVERRIDE; 40 virtual bool isURLAttribute( Attribute*) const;40 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 41 41 }; 42 42 -
trunk/Source/WebCore/html/HTMLScriptElement.cpp
r114351 r116430 48 48 } 49 49 50 bool HTMLScriptElement::isURLAttribute( Attribute* attr) const50 bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const 51 51 { 52 return attr ->name() == srcAttr || HTMLElement::isURLAttribute(attr);52 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute); 53 53 } 54 54 -
trunk/Source/WebCore/html/HTMLScriptElement.h
r114351 r116430 49 49 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 50 50 51 virtual bool isURLAttribute( Attribute*) const;51 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 52 52 53 53 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; -
trunk/Source/WebCore/html/HTMLSourceElement.cpp
r114351 r116430 118 118 } 119 119 120 bool HTMLSourceElement::isURLAttribute( Attribute*attribute) const120 bool HTMLSourceElement::isURLAttribute(const Attribute& attribute) const 121 121 { 122 return attribute ->name() == srcAttr || HTMLElement::isURLAttribute(attribute);122 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute); 123 123 } 124 124 -
trunk/Source/WebCore/html/HTMLSourceElement.h
r114351 r116430 52 52 virtual InsertionNotificationRequest insertedInto(Node*) OVERRIDE; 53 53 virtual void willRemove(); 54 virtual bool isURLAttribute( Attribute*) const;54 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 55 55 56 56 void errorEventTimerFired(Timer<HTMLSourceElement>*); -
trunk/Source/WebCore/html/HTMLTableCellElement.cpp
r109149 r116430 122 122 } 123 123 124 bool HTMLTableCellElement::isURLAttribute( Attribute *attr) const124 bool HTMLTableCellElement::isURLAttribute(const Attribute& attribute) const 125 125 { 126 return attr ->name() == backgroundAttr || HTMLTablePartElement::isURLAttribute(attr);126 return attribute.name() == backgroundAttr || HTMLTablePartElement::isURLAttribute(attribute); 127 127 } 128 128 -
trunk/Source/WebCore/html/HTMLTableCellElement.h
r109149 r116430 60 60 virtual StylePropertySet* additionalAttributeStyle() OVERRIDE; 61 61 62 virtual bool isURLAttribute( Attribute*) const;62 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 63 63 64 64 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; -
trunk/Source/WebCore/html/HTMLTableElement.cpp
r115160 r116430 556 556 } 557 557 558 bool HTMLTableElement::isURLAttribute( Attribute *attr) const559 { 560 return attr ->name() == backgroundAttr || HTMLElement::isURLAttribute(attr);558 bool HTMLTableElement::isURLAttribute(const Attribute& attribute) const 559 { 560 return attribute.name() == backgroundAttr || HTMLElement::isURLAttribute(attribute); 561 561 } 562 562 -
trunk/Source/WebCore/html/HTMLTableElement.h
r115160 r116430 75 75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 76 76 virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE; 77 virtual bool isURLAttribute( Attribute*) const;77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 78 78 79 79 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes. -
trunk/Source/WebCore/html/HTMLTrackElement.cpp
r114351 r116430 185 185 } 186 186 187 bool HTMLTrackElement::isURLAttribute( Attribute*attribute) const188 { 189 return attribute ->name() == srcAttr || HTMLElement::isURLAttribute(attribute);187 bool HTMLTrackElement::isURLAttribute(const Attribute& attribute) const 188 { 189 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute); 190 190 } 191 191 -
trunk/Source/WebCore/html/HTMLTrackElement.h
r114351 r116430 80 80 virtual InsertionNotificationRequest insertedInto(Node*) OVERRIDE; 81 81 virtual void willRemove() OVERRIDE; 82 virtual bool isURLAttribute( Attribute*) const;82 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 83 83 84 84 #if ENABLE(MICRODATA) -
trunk/Source/WebCore/html/HTMLVideoElement.cpp
r109149 r116430 183 183 } 184 184 185 bool HTMLVideoElement::isURLAttribute(Attribute* attribute) const 186 { 187 return HTMLMediaElement::isURLAttribute(attribute) 188 || attribute->name() == posterAttr; 185 bool HTMLVideoElement::isURLAttribute(const Attribute& attribute) const 186 { 187 return attribute.name() == posterAttr || HTMLMediaElement::isURLAttribute(attribute); 189 188 } 190 189 -
trunk/Source/WebCore/html/HTMLVideoElement.h
r109149 r116430 82 82 virtual bool hasVideo() const { return player() && player()->hasVideo(); } 83 83 virtual bool supportsFullscreen() const; 84 virtual bool isURLAttribute( Attribute*) const;84 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 85 85 virtual const QualifiedName& imageSourceAttributeName() const; 86 86 -
trunk/Source/WebCore/svg/SVGScriptElement.cpp
r114351 r116430 133 133 } 134 134 135 bool SVGScriptElement::isURLAttribute( Attribute* attr) const136 { 137 return attr ->name() == sourceAttributeValue();135 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const 136 { 137 return attribute.name() == sourceAttributeValue(); 138 138 } 139 139 -
trunk/Source/WebCore/svg/SVGScriptElement.h
r114351 r116430 51 51 52 52 virtual void svgAttributeChanged(const QualifiedName&); 53 virtual bool isURLAttribute( Attribute*) const;53 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 54 54 virtual void finishParsingChildren(); 55 55
Note: See TracChangeset
for help on using the changeset viewer.