| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void didMutateRules(); | 94 void didMutateRules(); |
| 95 void didMutate(StyleSheetUpdateType = PartialRuleUpdate); | 95 void didMutate(StyleSheetUpdateType = PartialRuleUpdate); |
| 96 | 96 |
| 97 void clearChildRuleCSSOMWrappers(); | 97 void clearChildRuleCSSOMWrappers(); |
| 98 | 98 |
| 99 StyleSheetContents* contents() const { return m_contents.get(); } | 99 StyleSheetContents* contents() const { return m_contents.get(); } |
| 100 | 100 |
| 101 bool isInline() const { return m_isInlineStylesheet; } | 101 bool isInline() const { return m_isInlineStylesheet; } |
| 102 TextPosition startPositionInSource() const { return m_startPosition; } | 102 TextPosition startPositionInSource() const { return m_startPosition; } |
| 103 | 103 |
| 104 virtual void trace(Visitor*) override; | |
| 105 | |
| 106 private: | 104 private: |
| 107 CSSStyleSheet(PassRefPtr<StyleSheetContents>); | 105 CSSStyleSheet(PassRefPtr<StyleSheetContents>); |
| 108 CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode, bool isInline
Stylesheet, const TextPosition& startPosition); | 106 CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode, bool isInline
Stylesheet, const TextPosition& startPosition); |
| 109 | 107 |
| 110 virtual bool isCSSStyleSheet() const override { return true; } | 108 virtual bool isCSSStyleSheet() const override { return true; } |
| 111 virtual String type() const override { return "text/css"; } | 109 virtual String type() const override { return "text/css"; } |
| 112 | 110 |
| 113 void reattachChildRuleCSSOMWrappers(); | 111 void reattachChildRuleCSSOMWrappers(); |
| 114 | 112 |
| 115 RefPtr<StyleSheetContents> m_contents; | 113 RefPtr<StyleSheetContents> m_contents; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 142 { | 140 { |
| 143 if (m_styleSheet) | 141 if (m_styleSheet) |
| 144 m_styleSheet->didMutateRules(); | 142 m_styleSheet->didMutateRules(); |
| 145 } | 143 } |
| 146 | 144 |
| 147 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 145 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 148 | 146 |
| 149 } // namespace blink | 147 } // namespace blink |
| 150 | 148 |
| 151 #endif | 149 #endif |
| OLD | NEW |