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

Unified Diff: Source/core/frame/DOMWindow.cpp

Issue 137143002: Remove compile time flag ORIENTATION_EVENT and use runtime flag instead. Update layout test case to… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/Frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindow.cpp
diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
index ebaf7813b00664e25e171a6e4297e8db30e7b02b..e695e673a5c4d0aa64ae1e892c20808dd5eb4b48 100644
--- a/Source/core/frame/DOMWindow.cpp
+++ b/Source/core/frame/DOMWindow.cpp
@@ -612,15 +612,15 @@ bool DOMWindow::isCurrentlyDisplayedInFrame() const
return m_frame && m_frame->domWindow() == this;
}
-#if ENABLE(ORIENTATION_EVENTS)
int DOMWindow::orientation() const
{
+ ASSERT(!RuntimeEnabledFeatures::orientationEventEnabled());
+
if (!m_frame)
return 0;
return m_frame->orientation();
}
-#endif
Screen* DOMWindow::screen() const
{
« no previous file with comments | « Source/core/frame/DOMWindow.h ('k') | Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698