| 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 28 matching lines...) Expand all Loading... |
| 39 class StyleSheetContents; | 39 class StyleSheetContents; |
| 40 | 40 |
| 41 enum StyleSheetUpdateType { | 41 enum StyleSheetUpdateType { |
| 42 PartialRuleUpdate, | 42 PartialRuleUpdate, |
| 43 EntireStyleSheetUpdate | 43 EntireStyleSheetUpdate |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 class CSSStyleSheet final : public StyleSheet { | 46 class CSSStyleSheet final : public StyleSheet { |
| 47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 48 public: |
| 49 static PassRefPtr<CSSStyleSheet> create(PassRefPtr<StyleSheetContents>); | |
| 50 static PassRefPtr<CSSStyleSheet> createInline(Node*, const KURL&, const Text
Position& startPosition = TextPosition::minimumPosition()); | 49 static PassRefPtr<CSSStyleSheet> createInline(Node*, const KURL&, const Text
Position& startPosition = TextPosition::minimumPosition()); |
| 51 static PassRefPtr<CSSStyleSheet> createInline(PassRefPtr<StyleSheetContents>
, Node* ownerNode, const TextPosition& startPosition = TextPosition::minimumPosi
tion()); | 50 static PassRefPtr<CSSStyleSheet> createInline(PassRefPtr<StyleSheetContents>
, Node* ownerNode, const TextPosition& startPosition = TextPosition::minimumPosi
tion()); |
| 52 | 51 |
| 53 virtual ~CSSStyleSheet(); | 52 virtual ~CSSStyleSheet(); |
| 54 | 53 |
| 55 virtual Node* ownerNode() const override { return m_ownerNode; } | 54 virtual Node* ownerNode() const override { return m_ownerNode; } |
| 56 virtual MediaList* media() const override; | 55 virtual MediaList* media() const override; |
| 57 | 56 |
| 58 PassRefPtr<CSSRuleList> cssRules(); | 57 PassRefPtr<CSSRuleList> cssRules(); |
| 59 unsigned insertRule(const String& rule, unsigned index, ExceptionState&); | 58 unsigned insertRule(const String& rule, unsigned index, ExceptionState&); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 { | 139 { |
| 141 if (m_styleSheet) | 140 if (m_styleSheet) |
| 142 m_styleSheet->didMutateRules(); | 141 m_styleSheet->didMutateRules(); |
| 143 } | 142 } |
| 144 | 143 |
| 145 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 144 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 146 | 145 |
| 147 } // namespace blink | 146 } // namespace blink |
| 148 | 147 |
| 149 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLESHEET_H_ | 148 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLESHEET_H_ |
| OLD | NEW |