Fix orientation angle value
[framework/web/webkit-efl.git] / Source / WebCore / platform / efl / PlatformScreenEfl.cpp
index 97e46e1..443b122 100644 (file)
@@ -134,7 +134,9 @@ FloatRect screenRect(Widget* widget)
         FrameView* frameView = static_cast<FrameView*>(widget);
         Frame* frame = frameView->frame();
         int orientation = frame ? frame->orientation() : 0;
-        if (orientation == 90 || orientation == 270) {
+        // landscape orientation value is 90 or -90
+        // ref. ewk_view_orientation_send()
+        if (orientation == 90 || orientation == -90) {
             int temp = width;
             width = height;
             height = temp;