| Summary: | [EFL] Remove redudant condition in ViewClientEfl::didChangeViewportAttributes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryuan Choi <ryuan.choi> | ||||
| Component: | WebKit EFL | Assignee: | Ryuan Choi <ryuan.choi> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, lucas.de.marchi | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Ryuan Choi
2015-05-05 23:39:32 PDT
Created attachment 252455 [details]
Patch
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 ? 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. Comment on attachment 252455 [details]
Patch
ok, r=me.
Comment on attachment 252455 [details] Patch Clearing flags on attachment: 252455 Committed r183864: <http://trac.webkit.org/changeset/183864> All reviewed patches have been landed. Closing bug. |