| 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 30 matching lines...) Expand all Loading... |
| 41 class MediaQuerySet; | 41 class MediaQuerySet; |
| 42 class SecurityOrigin; | 42 class SecurityOrigin; |
| 43 class StyleSheetContents; | 43 class StyleSheetContents; |
| 44 | 44 |
| 45 enum StyleSheetUpdateType { | 45 enum StyleSheetUpdateType { |
| 46 PartialRuleUpdate, | 46 PartialRuleUpdate, |
| 47 EntireStyleSheetUpdate | 47 EntireStyleSheetUpdate |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 class CSSStyleSheet FINAL : public StyleSheet { | 50 class CSSStyleSheet FINAL : public StyleSheet { |
| 51 DEFINE_WRAPPERTYPEINFO(); |
| 51 public: | 52 public: |
| 52 static PassRefPtrWillBeRawPtr<CSSStyleSheet> create(PassRefPtrWillBeRawPtr<S
tyleSheetContents>, CSSImportRule* ownerRule = 0); | 53 static PassRefPtrWillBeRawPtr<CSSStyleSheet> create(PassRefPtrWillBeRawPtr<S
tyleSheetContents>, CSSImportRule* ownerRule = 0); |
| 53 static PassRefPtrWillBeRawPtr<CSSStyleSheet> create(PassRefPtrWillBeRawPtr<S
tyleSheetContents>, Node* ownerNode); | 54 static PassRefPtrWillBeRawPtr<CSSStyleSheet> create(PassRefPtrWillBeRawPtr<S
tyleSheetContents>, Node* ownerNode); |
| 54 static PassRefPtrWillBeRawPtr<CSSStyleSheet> createInline(Node*, const KURL&
, const TextPosition& startPosition = TextPosition::minimumPosition(), const Str
ing& encoding = String()); | 55 static PassRefPtrWillBeRawPtr<CSSStyleSheet> createInline(Node*, const KURL&
, const TextPosition& startPosition = TextPosition::minimumPosition(), const Str
ing& encoding = String()); |
| 55 static PassRefPtrWillBeRawPtr<CSSStyleSheet> createInline(PassRefPtrWillBeRa
wPtr<StyleSheetContents>, Node* ownerNode, const TextPosition& startPosition = T
extPosition::minimumPosition()); | 56 static PassRefPtrWillBeRawPtr<CSSStyleSheet> createInline(PassRefPtrWillBeRa
wPtr<StyleSheetContents>, Node* ownerNode, const TextPosition& startPosition = T
extPosition::minimumPosition()); |
| 56 | 57 |
| 57 virtual ~CSSStyleSheet(); | 58 virtual ~CSSStyleSheet(); |
| 58 | 59 |
| 59 virtual CSSStyleSheet* parentStyleSheet() const OVERRIDE; | 60 virtual CSSStyleSheet* parentStyleSheet() const OVERRIDE; |
| 60 virtual Node* ownerNode() const OVERRIDE { return m_ownerNode; } | 61 virtual Node* ownerNode() const OVERRIDE { return m_ownerNode; } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 165 } |
| 165 | 166 |
| 166 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() | 167 inline CSSStyleSheet::RuleMutationScope::~RuleMutationScope() |
| 167 { | 168 { |
| 168 if (m_styleSheet) | 169 if (m_styleSheet) |
| 169 m_styleSheet->didMutateRules(); | 170 m_styleSheet->didMutateRules(); |
| 170 } | 171 } |
| 171 | 172 |
| 172 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 173 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 173 | 174 |
| 174 } // namespace | 175 } // namespace blink |
| 175 | 176 |
| 176 #endif | 177 #endif |
| OLD | NEW |