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 15 matching lines...) Expand all Loading... |
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/WebKitCSSViewportRule.h" | 32 #include "core/css/WebKitCSSViewportRule.h" |
33 | 33 |
34 #if ENABLE(CSS_DEVICE_ADAPTATION) | 34 #if ENABLE(CSS_DEVICE_ADAPTATION) |
35 | 35 |
36 #include "WebCoreMemoryInstrumentation.h" | |
37 #include "core/css/PropertySetCSSStyleDeclaration.h" | 36 #include "core/css/PropertySetCSSStyleDeclaration.h" |
38 #include "core/css/StylePropertySet.h" | 37 #include "core/css/StylePropertySet.h" |
39 #include "core/css/StyleRule.h" | 38 #include "core/css/StyleRule.h" |
| 39 #include "core/dom/WebCoreMemoryInstrumentation.h" |
40 #include <wtf/text/StringBuilder.h> | 40 #include <wtf/text/StringBuilder.h> |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 WebKitCSSViewportRule::WebKitCSSViewportRule(StyleRuleViewport* viewportRule, CS
SStyleSheet* sheet) | 44 WebKitCSSViewportRule::WebKitCSSViewportRule(StyleRuleViewport* viewportRule, CS
SStyleSheet* sheet) |
45 : CSSRule(sheet) | 45 : CSSRule(sheet) |
46 , m_viewportRule(viewportRule) | 46 , m_viewportRule(viewportRule) |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 { | 90 { |
91 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 91 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
92 CSSRule::reportMemoryUsage(memoryObjectInfo); | 92 CSSRule::reportMemoryUsage(memoryObjectInfo); |
93 info.addMember(m_viewportRule, "viewportRule"); | 93 info.addMember(m_viewportRule, "viewportRule"); |
94 info.addMember(m_propertiesCSSOMWrapper, "propertiesCSSOMWrapper"); | 94 info.addMember(m_propertiesCSSOMWrapper, "propertiesCSSOMWrapper"); |
95 } | 95 } |
96 | 96 |
97 } // namespace WebCore | 97 } // namespace WebCore |
98 | 98 |
99 #endif // ENABLE(CSS_DEVICE_ADAPTATION) | 99 #endif // ENABLE(CSS_DEVICE_ADAPTATION) |
OLD | NEW |