RESOLVED FIXED 144672
[EFL] Remove redudant condition in ViewClientEfl::didChangeViewportAttributes
https://bugs.webkit.org/show_bug.cgi?id=144672
Summary [EFL] Remove redudant condition in ViewClientEfl::didChangeViewportAttributes
Ryuan Choi
Reported 2015-05-05 23:39:32 PDT
ViewClientEfl::didChangeViewportAttributes() is always called when FixedLayout is enabled.
Attachments
Patch (2.08 KB, patch)
2015-05-05 23:42 PDT, Ryuan Choi
no flags
Ryuan Choi
Comment 1 2015-05-05 23:42:21 PDT
Gyuyoung Kim
Comment 2 2015-05-05 23:49:26 PDT
Comment on attachment 252455 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252455&action=review > Source/WebKit2/UIProcess/efl/ViewClientEfl.cpp:-134 > - ewkView->scheduleUpdateDisplay(); Why is this call removed ? > Source/WebKit2/UIProcess/efl/ViewClientEfl.cpp:129 > + ASSERT(WKPageUseFixedLayout(ewkView->wkPage())); I wonder why we need to add assert(). Should we generate a crash though this function is always called when fixed layout is disabled ?
Ryuan Choi
Comment 3 2015-05-06 00:18:34 PDT
Comment on attachment 252455 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252455&action=review >> Source/WebKit2/UIProcess/efl/ViewClientEfl.cpp:-134 >> - ewkView->scheduleUpdateDisplay(); > > Why is this call removed ? It has never been called because this method is always called when fixed layout is enabled. >> Source/WebKit2/UIProcess/efl/ViewClientEfl.cpp:129 >> + ASSERT(WKPageUseFixedLayout(ewkView->wkPage())); > > I wonder why we need to add assert(). Should we generate a crash though this function is always called when fixed layout is disabled ? In the current logic, it will not be happened that this function is called without fixed layout. I added assert() to catch the some bad changes earily in the debug build and notify that this method is only called when fixed layout is enabled.
Gyuyoung Kim
Comment 4 2015-05-06 00:22:14 PDT
Comment on attachment 252455 [details] Patch ok, r=me.
WebKit Commit Bot
Comment 5 2015-05-06 01:18:52 PDT
Comment on attachment 252455 [details] Patch Clearing flags on attachment: 252455 Committed r183864: <http://trac.webkit.org/changeset/183864>
WebKit Commit Bot
Comment 6 2015-05-06 01:18:56 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.