| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 CSSStyleSheet* parentStyleSheet() const override; | 58 CSSStyleSheet* parentStyleSheet() const override; |
| 59 Node* ownerNode() const override { return m_ownerNode; } | 59 Node* ownerNode() const override { return m_ownerNode; } |
| 60 MediaList* media() const override; | 60 MediaList* media() const override; |
| 61 String href() const override; | 61 String href() const override; |
| 62 String title() const override { return m_title; } | 62 String title() const override { return m_title; } |
| 63 bool disabled() const override { return m_isDisabled; } | 63 bool disabled() const override { return m_isDisabled; } |
| 64 void setDisabled(bool) override; | 64 void setDisabled(bool) override; |
| 65 | 65 |
| 66 CSSRuleList* cssRules(); | 66 CSSRuleList* cssRules(); |
| 67 CSSRuleList* maybeCssRules() const; |
| 68 |
| 67 unsigned insertRule(const String& rule, unsigned index, ExceptionState&); | 69 unsigned insertRule(const String& rule, unsigned index, ExceptionState&); |
| 68 unsigned insertRule(const String& rule, ExceptionState&); // Deprecated. | 70 unsigned insertRule(const String& rule, ExceptionState&); // Deprecated. |
| 69 void deleteRule(unsigned index, ExceptionState&); | 71 void deleteRule(unsigned index, ExceptionState&); |
| 70 | 72 |
| 71 // IE Extensions | 73 // IE Extensions |
| 72 CSSRuleList* rules(); | 74 CSSRuleList* rules(); |
| 73 int addRule(const String& selector, const String& style, int index, Exceptio
nState&); | 75 int addRule(const String& selector, const String& style, int index, Exceptio
nState&); |
| 74 int addRule(const String& selector, const String& style, ExceptionState&); | 76 int addRule(const String& selector, const String& style, ExceptionState&); |
| 75 void removeRule(unsigned index, ExceptionState& exceptionState) { deleteRule
(index, exceptionState); } | 77 void removeRule(unsigned index, ExceptionState& exceptionState) { deleteRule
(index, exceptionState); } |
| 76 | 78 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 { | 171 { |
| 170 if (m_styleSheet) | 172 if (m_styleSheet) |
| 171 m_styleSheet->didMutateRules(); | 173 m_styleSheet->didMutateRules(); |
| 172 } | 174 } |
| 173 | 175 |
| 174 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); | 176 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh
eet.isCSSStyleSheet()); |
| 175 | 177 |
| 176 } // namespace blink | 178 } // namespace blink |
| 177 | 179 |
| 178 #endif | 180 #endif |
| OLD | NEW |