[Title] Fix orientation angle value
[Issue#] N/A (TC fail)
[Problem] On secondary landscape mode, screen width and height are incorrect
[Cause] WebKit's secondary landscape mode's orientation value is -90, but
currently screen rect is handling 270 only
[Solution] Use -90 instead of 270
Change-Id: I843a0ed827fe37252990fc516e7696064af8e369
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;