| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "CSSStyleSheet.h" | 22 #include "CSSStyleSheet.h" |
| 23 | 23 |
| 24 #include "CSSCharsetRule.h" | 24 #include "CSSCharsetRule.h" |
| 25 #include "CSSFontFaceRule.h" | 25 #include "CSSFontFaceRule.h" |
| 26 #include "CSSImportRule.h" | 26 #include "CSSImportRule.h" |
| 27 #include "CSSParser.h" | 27 #include "CSSParser.h" |
| 28 #include "CSSRuleList.h" | 28 #include "CSSRuleList.h" |
| 29 #include "CSSStyleRule.h" | 29 #include "CSSStyleRule.h" |
| 30 #include "CachedCSSStyleSheet.h" | |
| 31 #include "Document.h" | 30 #include "Document.h" |
| 32 #include "ExceptionCode.h" | 31 #include "ExceptionCode.h" |
| 33 #include "HTMLNames.h" | 32 #include "HTMLNames.h" |
| 34 #include "MediaList.h" | 33 #include "MediaList.h" |
| 35 #include "Node.h" | 34 #include "Node.h" |
| 36 #include "SVGNames.h" | 35 #include "SVGNames.h" |
| 37 #include "SecurityOrigin.h" | 36 #include "SecurityOrigin.h" |
| 38 #include "StyleRule.h" | 37 #include "StyleRule.h" |
| 39 #include "StyleSheetContents.h" | 38 #include "StyleSheetContents.h" |
| 40 #include "WebCoreMemoryInstrumentation.h" | 39 #include "WebCoreMemoryInstrumentation.h" |
| 40 #include "core/loader/cache/CachedCSSStyleSheet.h" |
| 41 #include <wtf/MemoryInstrumentationVector.h> | 41 #include <wtf/MemoryInstrumentationVector.h> |
| 42 #include <wtf/text/StringBuilder.h> | 42 #include <wtf/text/StringBuilder.h> |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 class StyleSheetCSSRuleList : public CSSRuleList { | 46 class StyleSheetCSSRuleList : public CSSRuleList { |
| 47 public: | 47 public: |
| 48 StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { } | 48 StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { } |
| 49 | 49 |
| 50 private: | 50 private: |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 root = root->parentStyleSheet(); | 386 root = root->parentStyleSheet(); |
| 387 return root->ownerNode() ? root->ownerNode()->document() : 0; | 387 return root->ownerNode() ? root->ownerNode()->document() : 0; |
| 388 } | 388 } |
| 389 | 389 |
| 390 void CSSStyleSheet::clearChildRuleCSSOMWrappers() | 390 void CSSStyleSheet::clearChildRuleCSSOMWrappers() |
| 391 { | 391 { |
| 392 m_childRuleCSSOMWrappers.clear(); | 392 m_childRuleCSSOMWrappers.clear(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 } | 395 } |
| OLD | NEW |