| 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 29 matching lines...) Expand all Loading... |
| 40 class SecurityOrigin; | 40 class SecurityOrigin; |
| 41 class StyleSheetContents; | 41 class StyleSheetContents; |
| 42 | 42 |
| 43 enum StyleSheetUpdateType { | 43 enum StyleSheetUpdateType { |
| 44 PartialRuleUpdate, | 44 PartialRuleUpdate, |
| 45 EntireStyleSheetUpdate | 45 EntireStyleSheetUpdate |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 class CORE_EXPORT CSSStyleSheet final : public StyleSheet { | 48 class CORE_EXPORT CSSStyleSheet final : public StyleSheet { |
| 49 DEFINE_WRAPPERTYPEINFO(); | 49 DEFINE_WRAPPERTYPEINFO(); |
| 50 WTF_MAKE_NONCOPYABLE(CSSStyleSheet); |
| 50 public: | 51 public: |
| 51 static CSSStyleSheet* create(StyleSheetContents*, CSSImportRule* ownerRule =
0); | 52 static CSSStyleSheet* create(StyleSheetContents*, CSSImportRule* ownerRule =
0); |
| 52 static CSSStyleSheet* create(StyleSheetContents*, Node* ownerNode); | 53 static CSSStyleSheet* create(StyleSheetContents*, Node* ownerNode); |
| 53 static CSSStyleSheet* createInline(Node*, const KURL&, const TextPosition& s
tartPosition = TextPosition::minimumPosition(), const String& encoding = String(
)); | 54 static CSSStyleSheet* createInline(Node*, const KURL&, const TextPosition& s
tartPosition = TextPosition::minimumPosition(), const String& encoding = String(
)); |
| 54 static CSSStyleSheet* createInline(StyleSheetContents*, Node* ownerNode, con
st TextPosition& startPosition = TextPosition::minimumPosition()); | 55 static CSSStyleSheet* createInline(StyleSheetContents*, Node* ownerNode, con
st TextPosition& startPosition = TextPosition::minimumPosition()); |
| 55 | 56 |
| 56 ~CSSStyleSheet() override; | 57 ~CSSStyleSheet() override; |
| 57 | 58 |
| 58 CSSStyleSheet* parentStyleSheet() const override; | 59 CSSStyleSheet* parentStyleSheet() const override; |
| 59 Node* ownerNode() const override { return m_ownerNode; } | 60 Node* ownerNode() const override { return m_ownerNode; } |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 { | 170 { |
| 170 if (m_styleSheet) | 171 if (m_styleSheet) |
| 171 m_styleSheet->didMutateRules(); | 172 m_styleSheet->didMutateRules(); |
| 172 } | 173 } |
| 173 | 174 |
| 174 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 175 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 175 | 176 |
| 176 } // namespace blink | 177 } // namespace blink |
| 177 | 178 |
| 178 #endif | 179 #endif |
| OLD | NEW |