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;