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

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

Issue 14178009: Remove CSS_REGIONS compile flag from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rework patch after https://codereview.chromium.org/14324009 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 switch (cssRule->type()) { 63 switch (cssRule->type()) {
64 case CSSRule::IMPORT_RULE: 64 case CSSRule::IMPORT_RULE:
65 collect(static_cast<CSSImportRule*>(cssRule)->styleSheet()); 65 collect(static_cast<CSSImportRule*>(cssRule)->styleSheet());
66 break; 66 break;
67 case CSSRule::MEDIA_RULE: 67 case CSSRule::MEDIA_RULE:
68 collect(static_cast<CSSMediaRule*>(cssRule)); 68 collect(static_cast<CSSMediaRule*>(cssRule));
69 break; 69 break;
70 case CSSRule::SUPPORTS_RULE: 70 case CSSRule::SUPPORTS_RULE:
71 collect(static_cast<CSSSupportsRule*>(cssRule)); 71 collect(static_cast<CSSSupportsRule*>(cssRule));
72 break; 72 break;
73 #if ENABLE(CSS_REGIONS)
74 case CSSRule::WEBKIT_REGION_RULE: 73 case CSSRule::WEBKIT_REGION_RULE:
75 collect(static_cast<WebKitCSSRegionRule*>(cssRule)); 74 collect(static_cast<WebKitCSSRegionRule*>(cssRule));
76 break; 75 break;
77 #endif
78 case CSSRule::HOST_RULE: 76 case CSSRule::HOST_RULE:
79 collect(static_cast<CSSHostRule*>(cssRule)); 77 collect(static_cast<CSSHostRule*>(cssRule));
80 break; 78 break;
81 case CSSRule::STYLE_RULE: 79 case CSSRule::STYLE_RULE:
82 m_styleRuleToCSSOMWrapperMap.add(static_cast<CSSStyleRule*>(cssRule) ->styleRule(), static_cast<CSSStyleRule*>(cssRule)); 80 m_styleRuleToCSSOMWrapperMap.add(static_cast<CSSStyleRule*>(cssRule) ->styleRule(), static_cast<CSSStyleRule*>(cssRule));
83 break; 81 break;
84 default: 82 default:
85 break; 83 break;
86 } 84 }
87 } 85 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 125 }
128 126
129 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf o) const 127 void InspectorCSSOMWrappers::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf o) const
130 { 128 {
131 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); 129 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
132 info.addMember(m_styleRuleToCSSOMWrapperMap); 130 info.addMember(m_styleRuleToCSSOMWrapperMap);
133 info.addMember(m_styleSheetCSSOMWrapperSet); 131 info.addMember(m_styleSheetCSSOMWrapperSet);
134 } 132 }
135 133
136 } // namespace WebCore 134 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698