| 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, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 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, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 StyleSheetContents* contents() const { return m_contents.get(); } | 109 StyleSheetContents* contents() const { return m_contents.get(); } |
| 110 | 110 |
| 111 bool isInline() const { return m_isInlineStylesheet; } | 111 bool isInline() const { return m_isInlineStylesheet; } |
| 112 TextPosition startPositionInSource() const { return m_startPosition; } | 112 TextPosition startPositionInSource() const { return m_startPosition; } |
| 113 | 113 |
| 114 bool sheetLoaded(); | 114 bool sheetLoaded(); |
| 115 bool loadCompleted() const { return m_loadCompleted; } | 115 bool loadCompleted() const { return m_loadCompleted; } |
| 116 void startLoadingDynamicSheet(); | 116 void startLoadingDynamicSheet(); |
| 117 | 117 |
| 118 virtual void trace(Visitor*) override; | 118 DECLARE_VIRTUAL_TRACE(); |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own
erRule); | 121 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own
erRule); |
| 122 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b
ool isInlineStylesheet, const TextPosition& startPosition); | 122 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b
ool isInlineStylesheet, const TextPosition& startPosition); |
| 123 | 123 |
| 124 virtual bool isCSSStyleSheet() const override { return true; } | 124 virtual bool isCSSStyleSheet() const override { return true; } |
| 125 virtual String type() const override { return "text/css"; } | 125 virtual String type() const override { return "text/css"; } |
| 126 | 126 |
| 127 void reattachChildRuleCSSOMWrappers(); | 127 void reattachChildRuleCSSOMWrappers(); |
| 128 | 128 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 { | 164 { |
| 165 if (m_styleSheet) | 165 if (m_styleSheet) |
| 166 m_styleSheet->didMutateRules(); | 166 m_styleSheet->didMutateRules(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 169 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif | 173 #endif |
| OLD | NEW |