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

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

Issue 277413002: Make screen.orientation implementation use WebScreenInfo::orientationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Disable screen orientation detection in layout tests Created 6 years, 7 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/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 1fd588bc1e4d5888ecc1767e69ce62b1327a3a99..7ef28dcec48d3969cd876e9678f3e3ec04a58c1b 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -164,7 +164,7 @@ void LocalFrame::setView(PassRefPtr<FrameView> view)
void LocalFrame::sendOrientationChangeEvent()
{
- if (!RuntimeEnabledFeatures::orientationEventEnabled())
+ if (!RuntimeEnabledFeatures::orientationEventEnabled() && !RuntimeEnabledFeatures::screenOrientationEnabled())
mlamouri (slow - plz ping) 2014/05/19 14:06:15 window.orientation has a bug wrt to orientationcha
Inactive 2014/05/19 15:14:30 Ok, I'll take a look. I think we can traverse subf
Inactive 2014/05/19 16:05:26 Done and added a layout test to cover this.
return;
if (DOMWindow* window = domWindow())
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | Source/modules/screen_orientation/ScreenOrientationController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698