Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
index 9f48134270c6c05d832b2a293c08d5f4e995b962..dbeed629a02df14a7bef88672134a0d5b8a1d270 100644 |
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp |
@@ -49,13 +49,14 @@ const char* ScreenOrientationController::supplementName() { |
return "ScreenOrientationController"; |
} |
-// Compute the screen orientation using the orientation angle and the screen width / height. |
+// Compute the screen orientation using the orientation angle and the screen |
+// width / height. |
WebScreenOrientationType ScreenOrientationController::computeOrientation( |
const IntRect& rect, |
uint16_t rotation) { |
// Bypass orientation detection in layout tests to get consistent results. |
- // FIXME: The screen dimension should be fixed when running the layout tests to avoid such |
- // issues. |
+ // FIXME: The screen dimension should be fixed when running the layout tests |
+ // to avoid such issues. |
if (LayoutTestSupport::isRunningLayoutTest()) |
return WebScreenOrientationPortraitPrimary; |
@@ -89,7 +90,8 @@ void ScreenOrientationController::updateOrientation() { |
WebScreenInfo screenInfo = chromeClient.screenInfo(); |
WebScreenOrientationType orientationType = screenInfo.orientationType; |
if (orientationType == WebScreenOrientationUndefined) { |
- // The embedder could not provide us with an orientation, deduce it ourselves. |
+ // The embedder could not provide us with an orientation, deduce it |
+ // ourselves. |
orientationType = computeOrientation(chromeClient.screenInfo().rect, |
screenInfo.orientationAngle); |
} |