Changeset 98861 in webkit
- Timestamp:
- Oct 31, 2011 10:02:49 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r98860 r98861 1 2011-10-31 Andreas Kling <kling@webkit.org> 2 3 CSSRule: Devirtualize insertedIntoParent() 4 https://bugs.webkit.org/show_bug.cgi?id=71223 5 6 Reviewed by Antti Koivisto. 7 8 Moved insertedIntoParent() down into CSSImportRule and renamed it to 9 requestStyleSheet(). CSSImportRule is the only user of this function. 10 11 * css/CSSImportRule.cpp: 12 (WebCore::CSSImportRule::requestStyleSheet): 13 * css/CSSImportRule.h: 14 * css/CSSRule.h: 15 * css/CSSStyleSheet.cpp: 16 (WebCore::CSSStyleSheet::append): 17 (WebCore::CSSStyleSheet::insertRule): 18 1 19 2011-10-31 Anna Cavender <annacc@chromium.org> 2 20 -
trunk/Source/WebCore/css/CSSImportRule.cpp
r98859 r98861 110 110 } 111 111 112 void CSSImportRule:: insertedIntoParent()112 void CSSImportRule::requestStyleSheet() 113 113 { 114 114 CSSStyleSheet* parentSheet = parentStyleSheet(); -
trunk/Source/WebCore/css/CSSImportRule.h
r98859 r98861 55 55 virtual void addSubresourceStyleURLs(ListHashSet<KURL>& urls); 56 56 57 void requestStyleSheet(); 58 57 59 private: 58 60 CSSImportRule(CSSStyleSheet* parent, const String& href, PassRefPtr<MediaList>); 59 60 virtual void insertedIntoParent();61 61 62 62 // from CachedResourceClient -
trunk/Source/WebCore/css/CSSRule.h
r98859 r98861 97 97 virtual void addSubresourceStyleURLs(ListHashSet<KURL>&) { } 98 98 99 virtual void insertedIntoParent() { }100 101 99 KURL baseURL() const 102 100 { -
trunk/Source/WebCore/css/CSSStyleSheet.cpp
r98853 r98861 89 89 CSSRule* c = child.get(); 90 90 m_children.append(child); 91 c->insertedIntoParent(); 91 if (c->isImportRule()) 92 static_cast<CSSImportRule*>(c)->requestStyleSheet(); 92 93 } 93 94 … … 137 138 CSSRule* c = r.get(); 138 139 m_children.insert(index, r.release()); 139 c->insertedIntoParent(); 140 if (c->isImportRule()) 141 static_cast<CSSImportRule*>(c)->requestStyleSheet(); 140 142 141 143 styleSheetChanged();
Note: See TracChangeset
for help on using the changeset viewer.