OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above | 9 * 1. Redistributions of source code must retain the above |
10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
(...skipping 13 matching lines...) Expand all Loading... |
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 * SUCH DAMAGE. | 28 * SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/css/CSSViewportRule.h" | 32 #include "core/css/CSSViewportRule.h" |
33 | 33 |
34 #if ENABLE(CSS_DEVICE_ADAPTATION) | |
35 | |
36 #include "core/css/PropertySetCSSStyleDeclaration.h" | 34 #include "core/css/PropertySetCSSStyleDeclaration.h" |
37 #include "core/css/StylePropertySet.h" | 35 #include "core/css/StylePropertySet.h" |
38 #include "core/css/StyleRule.h" | 36 #include "core/css/StyleRule.h" |
39 #include "core/dom/WebCoreMemoryInstrumentation.h" | 37 #include "core/dom/WebCoreMemoryInstrumentation.h" |
40 #include "wtf/text/StringBuilder.h" | 38 #include "wtf/text/StringBuilder.h" |
41 | 39 |
42 namespace WebCore { | 40 namespace WebCore { |
43 | 41 |
44 CSSViewportRule::CSSViewportRule(StyleRuleViewport* viewportRule, CSSStyleSheet*
sheet) | 42 CSSViewportRule::CSSViewportRule(StyleRuleViewport* viewportRule, CSSStyleSheet*
sheet) |
45 : CSSRule(sheet) | 43 : CSSRule(sheet) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 86 |
89 void CSSViewportRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons
t | 87 void CSSViewportRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons
t |
90 { | 88 { |
91 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 89 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
92 CSSRule::reportMemoryUsage(memoryObjectInfo); | 90 CSSRule::reportMemoryUsage(memoryObjectInfo); |
93 info.addMember(m_viewportRule, "viewportRule"); | 91 info.addMember(m_viewportRule, "viewportRule"); |
94 info.addMember(m_propertiesCSSOMWrapper, "propertiesCSSOMWrapper"); | 92 info.addMember(m_propertiesCSSOMWrapper, "propertiesCSSOMWrapper"); |
95 } | 93 } |
96 | 94 |
97 } // namespace WebCore | 95 } // namespace WebCore |
98 | |
99 #endif // ENABLE(CSS_DEVICE_ADAPTATION) | |
OLD | NEW |