| 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 |
| 4 * reserved. |
| 4 * | 5 * |
| 5 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 9 * | 10 * |
| 10 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 95 |
| 95 CSSRule* ownerRule() const override { return m_ownerRule; } | 96 CSSRule* ownerRule() const override { return m_ownerRule; } |
| 96 KURL baseURL() const override; | 97 KURL baseURL() const override; |
| 97 bool isLoading() const override; | 98 bool isLoading() const override; |
| 98 | 99 |
| 99 void clearOwnerRule() { m_ownerRule = nullptr; } | 100 void clearOwnerRule() { m_ownerRule = nullptr; } |
| 100 Document* ownerDocument() const; | 101 Document* ownerDocument() const; |
| 101 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } | 102 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } |
| 102 void setMediaQueries(MediaQuerySet*); | 103 void setMediaQueries(MediaQuerySet*); |
| 103 void setTitle(const String& title) { m_title = title; } | 104 void setTitle(const String& title) { m_title = title; } |
| 104 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this o
rigin. | 105 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this |
| 106 // origin. |
| 105 void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin); | 107 void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin); |
| 106 | 108 |
| 107 class RuleMutationScope { | 109 class RuleMutationScope { |
| 108 WTF_MAKE_NONCOPYABLE(RuleMutationScope); | 110 WTF_MAKE_NONCOPYABLE(RuleMutationScope); |
| 109 STACK_ALLOCATED(); | 111 STACK_ALLOCATED(); |
| 110 | 112 |
| 111 public: | 113 public: |
| 112 explicit RuleMutationScope(CSSStyleSheet*); | 114 explicit RuleMutationScope(CSSStyleSheet*); |
| 113 explicit RuleMutationScope(CSSRule*); | 115 explicit RuleMutationScope(CSSRule*); |
| 114 ~RuleMutationScope(); | 116 ~RuleMutationScope(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 188 |
| 187 DEFINE_TYPE_CASTS(CSSStyleSheet, | 189 DEFINE_TYPE_CASTS(CSSStyleSheet, |
| 188 StyleSheet, | 190 StyleSheet, |
| 189 sheet, | 191 sheet, |
| 190 sheet->isCSSStyleSheet(), | 192 sheet->isCSSStyleSheet(), |
| 191 sheet.isCSSStyleSheet()); | 193 sheet.isCSSStyleSheet()); |
| 192 | 194 |
| 193 } // namespace blink | 195 } // namespace blink |
| 194 | 196 |
| 195 #endif | 197 #endif |
| OLD | NEW |