OLD | NEW |
---|---|
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. |
5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 PAGE_RULE, | 47 PAGE_RULE, |
48 // 7 was VARIABLES_RULE; we now match other browsers with 7 as | 48 // 7 was VARIABLES_RULE; we now match other browsers with 7 as |
49 // KEYFRAMES_RULE: | 49 // KEYFRAMES_RULE: |
50 // <https://bugs.webkit.org/show_bug.cgi?id=71293>. | 50 // <https://bugs.webkit.org/show_bug.cgi?id=71293>. |
51 WEBKIT_KEYFRAMES_RULE, | 51 WEBKIT_KEYFRAMES_RULE, |
52 WEBKIT_KEYFRAME_RULE, | 52 WEBKIT_KEYFRAME_RULE, |
53 SUPPORTS_RULE = 12, | 53 SUPPORTS_RULE = 12, |
54 #if ENABLE(CSS_DEVICE_ADAPTATION) | 54 #if ENABLE(CSS_DEVICE_ADAPTATION) |
55 WEBKIT_VIEWPORT_RULE = 15, | 55 WEBKIT_VIEWPORT_RULE = 15, |
56 #endif | 56 #endif |
57 #if ENABLE(CSS_REGIONS) | |
58 WEBKIT_REGION_RULE = 16, | 57 WEBKIT_REGION_RULE = 16, |
eseidel
2013/04/27 03:40:50
I'm not sure we're guarding rules at runtime. We'
| |
59 #endif | |
60 WEBKIT_FILTER_RULE = 17, | 58 WEBKIT_FILTER_RULE = 17, |
61 HOST_RULE = 1001, | 59 HOST_RULE = 1001, |
62 }; | 60 }; |
63 | 61 |
64 virtual Type type() const = 0; | 62 virtual Type type() const = 0; |
65 virtual String cssText() const = 0; | 63 virtual String cssText() const = 0; |
66 virtual void reattach(StyleRuleBase*) = 0; | 64 virtual void reattach(StyleRuleBase*) = 0; |
67 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | 65 virtual void reportMemoryUsage(MemoryObjectInfo*) const; |
68 | 66 |
69 void setParentStyleSheet(CSSStyleSheet* styleSheet) | 67 void setParentStyleSheet(CSSStyleSheet* styleSheet) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 | 107 |
110 union { | 108 union { |
111 CSSRule* m_parentRule; | 109 CSSRule* m_parentRule; |
112 CSSStyleSheet* m_parentStyleSheet; | 110 CSSStyleSheet* m_parentStyleSheet; |
113 }; | 111 }; |
114 }; | 112 }; |
115 | 113 |
116 } // namespace WebCore | 114 } // namespace WebCore |
117 | 115 |
118 #endif // CSSRule_h | 116 #endif // CSSRule_h |
OLD | NEW |