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

Unified Diff: Source/bindings/v8/custom/V8CSSRuleCustom.cpp

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/v8/custom/V8CSSRuleCustom.cpp
diff --git a/Source/bindings/v8/custom/V8CSSRuleCustom.cpp b/Source/bindings/v8/custom/V8CSSRuleCustom.cpp
index e8e505f1d152a16d2f0ea87a0287538b13e27a01..143cd8c00152ee737e1862b6969e3b687fd43d8d 100644
--- a/Source/bindings/v8/custom/V8CSSRuleCustom.cpp
+++ b/Source/bindings/v8/custom/V8CSSRuleCustom.cpp
@@ -43,10 +43,7 @@
#include "V8CSSRegionRule.h"
#include "V8CSSStyleRule.h"
#include "V8CSSSupportsRule.h"
-
-#if ENABLE(CSS_DEVICE_ADAPTATION)
#include "V8CSSViewportRule.h"
-#endif
namespace WebCore {
@@ -77,10 +74,8 @@ v8::Handle<v8::Object> wrap(CSSRule* impl, v8::Handle<v8::Object> creationContex
return wrap(static_cast<CSSKeyframesRule*>(impl), creationContext, isolate);
case CSSRule::SUPPORTS_RULE:
return wrap(static_cast<CSSSupportsRule*>(impl), creationContext, isolate);
-#if ENABLE(CSS_DEVICE_ADAPTATION)
case CSSRule::WEBKIT_VIEWPORT_RULE:
- return wrap(static_cast<WebKitCSSViewportRule*>(impl), creationContext, isolate);
-#endif
+ return wrap(static_cast<CSSViewportRule*>(impl), creationContext, isolate);
case CSSRule::WEBKIT_REGION_RULE:
return wrap(static_cast<CSSRegionRule*>(impl), creationContext, isolate);
case CSSRule::HOST_RULE:
« no previous file with comments | « LayoutTests/webexposed/global-constructors-listing-expected.txt ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698