Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: Source/core/css/WebKitCSSViewportRule.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/WebKitCSSViewportRule.h ('k') | Source/core/dom/ActiveDOMObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "WebKitCSSViewportRule.h" 32 #include "WebKitCSSViewportRule.h"
33 33
34 #if ENABLE(CSS_DEVICE_ADAPTATION) 34 #if ENABLE(CSS_DEVICE_ADAPTATION)
35 35
36 #include "PropertySetCSSStyleDeclaration.h" 36 #include "PropertySetCSSStyleDeclaration.h"
37 #include "StylePropertySet.h" 37 #include "StylePropertySet.h"
38 #include "StyleRule.h" 38 #include "StyleRule.h"
39 #include "WebCoreMemoryInstrumentation.h"
40 #include <wtf/text/StringBuilder.h> 39 #include <wtf/text/StringBuilder.h>
41 40
42 namespace WebCore { 41 namespace WebCore {
43 42
44 WebKitCSSViewportRule::WebKitCSSViewportRule(StyleRuleViewport* viewportRule, CS SStyleSheet* sheet) 43 WebKitCSSViewportRule::WebKitCSSViewportRule(StyleRuleViewport* viewportRule, CS SStyleSheet* sheet)
45 : CSSRule(sheet) 44 : CSSRule(sheet)
46 , m_viewportRule(viewportRule) 45 , m_viewportRule(viewportRule)
47 { 46 {
48 } 47 }
49 48
(...skipping 29 matching lines...) Expand all
79 void WebKitCSSViewportRule::reattach(StyleRuleBase* rule) 78 void WebKitCSSViewportRule::reattach(StyleRuleBase* rule)
80 { 79 {
81 ASSERT(rule); 80 ASSERT(rule);
82 ASSERT_WITH_SECURITY_IMPLICATION(rule->isViewportRule()); 81 ASSERT_WITH_SECURITY_IMPLICATION(rule->isViewportRule());
83 m_viewportRule = static_cast<StyleRuleViewport*>(rule); 82 m_viewportRule = static_cast<StyleRuleViewport*>(rule);
84 83
85 if (m_propertiesCSSOMWrapper) 84 if (m_propertiesCSSOMWrapper)
86 m_propertiesCSSOMWrapper->reattach(m_viewportRule->mutableProperties()); 85 m_propertiesCSSOMWrapper->reattach(m_viewportRule->mutableProperties());
87 } 86 }
88 87
89 void WebKitCSSViewportRule::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo ) const
90 {
91 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
92 CSSRule::reportMemoryUsage(memoryObjectInfo);
93 info.addMember(m_viewportRule, "viewportRule");
94 info.addMember(m_propertiesCSSOMWrapper, "propertiesCSSOMWrapper");
95 }
96
97 } // namespace WebCore 88 } // namespace WebCore
98 89
99 #endif // ENABLE(CSS_DEVICE_ADAPTATION) 90 #endif // ENABLE(CSS_DEVICE_ADAPTATION)
OLDNEW
« no previous file with comments | « Source/core/css/WebKitCSSViewportRule.h ('k') | Source/core/dom/ActiveDOMObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698