Changeset 17730 in webkit
- Timestamp:
- Nov 11, 2006 7:49:45 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r17724 r17730 1 2006-11-11 Rob Buis <buis@kde.org> 2 3 Reviewed by hyatt. 4 5 Testcase for: 6 http://bugzilla.opendarwin.org/show_bug.cgi?id=10893 7 InsertRule can not handle @import statements 8 9 * fast/dom/css-insert-import-rule-expected.txt: Added. 10 * fast/dom/css-insert-import-rule.html: Added. 11 * fast/dom/resources/css-insert-import-rule-red.css: Added. 12 1 13 2006-11-11 Graham Dennis <graham.dennis@gmail.com> 2 14 -
trunk/WebCore/ChangeLog
r17729 r17730 1 2006-11-11 Rob Buis <buis@kde.org> 2 3 Reviewed by hyatt. 4 5 http://bugzilla.opendarwin.org/show_bug.cgi?id=10893 6 InsertRule can not handle @import statements 7 8 Allow @import as part of a css rule. 9 10 * css/CSSGrammar.y: 11 * css/CSSImportRule.cpp: 12 (WebCore::CSSImportRule::insertedIntoParent): 13 * css/CSSStyleSheet.cpp: 14 (WebCore::CSSStyleSheet::CSSStyleSheet): 15 (WebCore::CSSStyleSheet::checkLoaded): 16 * css/CSSStyleSheet.h: 17 (WebCore::CSSStyleSheet::loadCompleted): 18 1 19 2006-11-11 Alexey Proskuryakov <ap@webkit.org> 2 20 -
trunk/WebCore/css/CSSGrammar.y
r16706 r17730 229 229 %type <rule> charset 230 230 %type <rule> ruleset 231 %type <rule> ruleset_or_import 231 232 %type <rule> media 232 233 %type <rule> import … … 298 299 ; 299 300 301 ruleset_or_import: 302 ruleset | 303 import 304 ; 305 300 306 webkit_rule: 301 WEBKIT_RULE_SYM '{' maybe_space ruleset maybe_space '}' {307 WEBKIT_RULE_SYM '{' maybe_space ruleset_or_import maybe_space '}' { 302 308 static_cast<CSSParser*>(parser)->rule = $4; 303 309 } -
trunk/WebCore/css/CSSImportRule.cpp
r16689 r17730 27 27 #include "CSSStyleSheet.h" 28 28 #include "DocLoader.h" 29 #include "Document.h" 29 30 #include "KURL.h" 30 31 #include "MediaList.h" … … 101 102 m_cachedSheet = docLoader->requestCSSStyleSheet(absHref, parentSheet->charset()); 102 103 if (m_cachedSheet) { 104 // if the import rule is issued dynamically, the sheet may be 105 // removed from the pending sheet count, so let the doc know 106 // the sheet being imported is pending. 107 if (parentSheet && parentSheet->loadCompleted()) 108 parentSheet->doc()->addPendingSheet(); 103 109 m_loading = true; 104 110 m_cachedSheet->ref(this); -
trunk/WebCore/css/CSSStyleSheet.cpp
r16689 r17730 38 38 , m_namespaces(0) 39 39 , m_charset(charset) 40 , m_loadCompleted(false) 40 41 { 41 42 } … … 46 47 , m_namespaces(0) 47 48 , m_charset(charset) 49 , m_loadCompleted(false) 48 50 { 49 51 } … … 54 56 , m_namespaces(0) 55 57 , m_charset(charset) 58 , m_loadCompleted(false) 56 59 { 57 60 } … … 170 173 if (m_parentNode) 171 174 m_parentNode->sheetLoaded(); 175 m_loadCompleted = true; 172 176 } 173 177 -
trunk/WebCore/css/CSSStyleSheet.h
r16689 r17730 71 71 const String& charset() const { return m_charset; } 72 72 73 bool loadCompleted() const { return m_loadCompleted; } 74 73 75 protected: 74 76 Document* m_doc; 75 77 CSSNamespace* m_namespaces; 76 78 String m_charset; 79 bool m_loadCompleted; 77 80 }; 78 81
Note: See TracChangeset
for help on using the changeset viewer.