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, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * 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. |
10 * | 10 * |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "config.h" | 22 #include "config.h" |
23 #include "core/css/StyleRule.h" | 23 #include "core/css/StyleRule.h" |
24 | 24 |
25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
26 #include "core/css/CSSCharsetRule.h" | 26 #include "core/css/CSSCharsetRule.h" |
27 #include "core/css/CSSFontFaceRule.h" | 27 #include "core/css/CSSFontFaceRule.h" |
28 #include "core/css/CSSHostRule.h" | 28 #include "core/css/CSSHostRule.h" |
29 #include "core/css/CSSImportRule.h" | 29 #include "core/css/CSSImportRule.h" |
30 #include "core/css/CSSMediaRule.h" | 30 #include "core/css/CSSMediaRule.h" |
31 #include "core/css/CSSPageRule.h" | 31 #include "core/css/CSSPageRule.h" |
| 32 #include "core/css/CSSRegionRule.h" |
32 #include "core/css/CSSStyleRule.h" | 33 #include "core/css/CSSStyleRule.h" |
33 #include "core/css/CSSSupportsRule.h" | 34 #include "core/css/CSSSupportsRule.h" |
34 #include "core/css/CSSUnknownRule.h" | 35 #include "core/css/CSSUnknownRule.h" |
| 36 #include "core/css/CSSViewportRule.h" |
35 #include "core/css/StylePropertySet.h" | 37 #include "core/css/StylePropertySet.h" |
36 #include "core/css/StyleRuleImport.h" | 38 #include "core/css/StyleRuleImport.h" |
37 #include "core/css/WebKitCSSFilterRule.h" | 39 #include "core/css/WebKitCSSFilterRule.h" |
38 #include "core/css/WebKitCSSKeyframeRule.h" | 40 #include "core/css/WebKitCSSKeyframeRule.h" |
39 #include "core/css/WebKitCSSKeyframesRule.h" | 41 #include "core/css/WebKitCSSKeyframesRule.h" |
40 #include "core/css/WebKitCSSRegionRule.h" | |
41 #include "core/css/WebKitCSSViewportRule.h" | |
42 #include "core/dom/WebCoreMemoryInstrumentation.h" | 42 #include "core/dom/WebCoreMemoryInstrumentation.h" |
43 #include <wtf/MemoryInstrumentationVector.h> | 43 #include "wtf/MemoryInstrumentationVector.h" |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 struct SameSizeAsStyleRuleBase : public WTF::RefCountedBase { | 47 struct SameSizeAsStyleRuleBase : public WTF::RefCountedBase { |
48 unsigned bitfields; | 48 unsigned bitfields; |
49 }; | 49 }; |
50 | 50 |
51 COMPILE_ASSERT(sizeof(StyleRuleBase) == sizeof(SameSizeAsStyleRuleBase), StyleRu
leBase_should_stay_small); | 51 COMPILE_ASSERT(sizeof(StyleRuleBase) == sizeof(SameSizeAsStyleRuleBase), StyleRu
leBase_should_stay_small); |
52 | 52 |
53 PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
) const | 53 PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
) const |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 case FontFace: | 205 case FontFace: |
206 rule = CSSFontFaceRule::create(static_cast<StyleRuleFontFace*>(self), pa
rentSheet); | 206 rule = CSSFontFaceRule::create(static_cast<StyleRuleFontFace*>(self), pa
rentSheet); |
207 break; | 207 break; |
208 case Media: | 208 case Media: |
209 rule = CSSMediaRule::create(static_cast<StyleRuleMedia*>(self), parentSh
eet); | 209 rule = CSSMediaRule::create(static_cast<StyleRuleMedia*>(self), parentSh
eet); |
210 break; | 210 break; |
211 case Supports: | 211 case Supports: |
212 rule = CSSSupportsRule::create(static_cast<StyleRuleSupports*>(self), pa
rentSheet); | 212 rule = CSSSupportsRule::create(static_cast<StyleRuleSupports*>(self), pa
rentSheet); |
213 break; | 213 break; |
214 case Region: | 214 case Region: |
215 rule = WebKitCSSRegionRule::create(static_cast<StyleRuleRegion*>(self),
parentSheet); | 215 rule = CSSRegionRule::create(static_cast<StyleRuleRegion*>(self), parent
Sheet); |
216 break; | 216 break; |
217 case Import: | 217 case Import: |
218 rule = CSSImportRule::create(static_cast<StyleRuleImport*>(self), parent
Sheet); | 218 rule = CSSImportRule::create(static_cast<StyleRuleImport*>(self), parent
Sheet); |
219 break; | 219 break; |
220 case Keyframes: | 220 case Keyframes: |
221 rule = WebKitCSSKeyframesRule::create(static_cast<StyleRuleKeyframes*>(s
elf), parentSheet); | 221 rule = WebKitCSSKeyframesRule::create(static_cast<StyleRuleKeyframes*>(s
elf), parentSheet); |
222 break; | 222 break; |
223 #if ENABLE(CSS_DEVICE_ADAPTATION) | 223 #if ENABLE(CSS_DEVICE_ADAPTATION) |
224 case Viewport: | 224 case Viewport: |
225 rule = WebKitCSSViewportRule::create(static_cast<StyleRuleViewport*>(sel
f), parentSheet); | 225 rule = WebKitCSSViewportRule::create(static_cast<StyleRuleViewport*>(sel
f), parentSheet); |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 } | 500 } |
501 | 501 |
502 void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const | 502 void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const |
503 { | 503 { |
504 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 504 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
505 info.addMember(m_filterName); | 505 info.addMember(m_filterName); |
506 info.addMember(m_properties); | 506 info.addMember(m_properties); |
507 } | 507 } |
508 | 508 |
509 } // namespace WebCore | 509 } // namespace WebCore |
OLD | NEW |