Changeset 167545 in webkit
- Timestamp:
- Apr 19, 2014 1:40:39 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167542 r167545 1 2014-04-19 Andreas Kling <akling@apple.com> 2 3 Slap ALWAYS_INLINE on Element attribute lookup things. 4 <https://webkit.org/b/131892> 5 6 Most of the "inline" helpers for setting/getting attributes were not 7 actually getting inlined by the compiler, so let's make that happen. 8 9 Reviewed by Geoffrey Garen. 10 11 * dom/Element.cpp: 12 (WebCore::Element::synchronizeAttribute): 13 * dom/ElementData.h: 14 (WebCore::ElementData::findAttributeByName): 15 (WebCore::ElementData::findAttributeIndexByName): 16 1 17 2014-04-19 Darin Adler <darin@apple.com> 2 18 -
trunk/Source/WebCore/dom/Element.cpp
r167210 r167545 378 378 } 379 379 380 inlinevoid Element::synchronizeAttribute(const QualifiedName& name) const380 ALWAYS_INLINE void Element::synchronizeAttribute(const QualifiedName& name) const 381 381 { 382 382 if (!elementData()) … … 394 394 } 395 395 396 inlinevoid Element::synchronizeAttribute(const AtomicString& localName) const396 ALWAYS_INLINE void Element::synchronizeAttribute(const AtomicString& localName) const 397 397 { 398 398 // This version of synchronizeAttribute() is streamlined for the case where you don't have a full QualifiedName, -
trunk/Source/WebCore/dom/ElementData.h
r163850 r167545 263 263 } 264 264 265 inlineconst Attribute* ElementData::findAttributeByName(const AtomicString& name, bool shouldIgnoreAttributeCase) const265 ALWAYS_INLINE const Attribute* ElementData::findAttributeByName(const AtomicString& name, bool shouldIgnoreAttributeCase) const 266 266 { 267 267 unsigned index = findAttributeIndexByName(name, shouldIgnoreAttributeCase); … … 271 271 } 272 272 273 inlineunsigned ElementData::findAttributeIndexByName(const QualifiedName& name) const273 ALWAYS_INLINE unsigned ElementData::findAttributeIndexByName(const QualifiedName& name) const 274 274 { 275 275 const Attribute* attributes = attributeBase(); … … 283 283 // We use a boolean parameter instead of calling shouldIgnoreAttributeCase so that the caller 284 284 // can tune the behavior (hasAttribute is case sensitive whereas getAttribute is not). 285 inlineunsigned ElementData::findAttributeIndexByName(const AtomicString& name, bool shouldIgnoreAttributeCase) const285 ALWAYS_INLINE unsigned ElementData::findAttributeIndexByName(const AtomicString& name, bool shouldIgnoreAttributeCase) const 286 286 { 287 287 const Attribute* attributes = attributeBase(); … … 303 303 } 304 304 305 inlineconst Attribute* ElementData::findAttributeByName(const QualifiedName& name) const305 ALWAYS_INLINE const Attribute* ElementData::findAttributeByName(const QualifiedName& name) const 306 306 { 307 307 const Attribute* attributes = attributeBase();
Note: See TracChangeset
for help on using the changeset viewer.