RESOLVED FIXED Bug 116441
[CSS Regions] Remove the offsetFromLogicalTopOfFirstPage parameter from layout functions
https://bugs.webkit.org/show_bug.cgi?id=116441
Summary [CSS Regions] Remove the offsetFromLogicalTopOfFirstPage parameter from layou...
Andrei Bucur
Reported 2013-05-20 08:52:48 PDT
Passing around offsetFromLogicalTopOfFirstPage to the RenderBox/RenderBlock functions seems redundant and it may be bug prone (e.g. the RenderBoxRegionInfo structures are cached for a region not a (region, offset) pair). I think this parameter was added because: - the offset values cached on layout state work only for the current block being laid out - only RenderBlock had offsetFromLogicalTopOfFirstPage() implemented Fix this before trying to change how ranges are computed to simplify the code.
Attachments
Patch (57.03 KB, patch)
2013-05-20 09:03 PDT, Andrei Bucur
no flags
Patch (68.50 KB, patch)
2013-05-21 07:38 PDT, Andrei Bucur
webkit-ews: commit-queue-
Patch (69.27 KB, patch)
2013-05-21 08:01 PDT, Andrei Bucur
no flags
Patch for landing (69.04 KB, patch)
2013-05-27 01:29 PDT, Andrei Bucur
no flags
Andrei Bucur
Comment 1 2013-05-20 09:03:14 PDT
Early Warning System Bot
Comment 2 2013-05-20 09:09:53 PDT
Early Warning System Bot
Comment 3 2013-05-20 09:09:59 PDT
kov's GTK+ EWS bot
Comment 4 2013-05-20 09:17:42 PDT
Build Bot
Comment 5 2013-05-20 09:27:37 PDT
Build Bot
Comment 6 2013-05-20 09:30:16 PDT
EFL EWS Bot
Comment 7 2013-05-20 10:05:23 PDT
Build Bot
Comment 8 2013-05-20 12:55:26 PDT
EFL EWS Bot
Comment 9 2013-05-20 18:24:23 PDT
Andrei Bucur
Comment 10 2013-05-21 07:38:42 PDT
Early Warning System Bot
Comment 11 2013-05-21 07:45:26 PDT
EFL EWS Bot
Comment 12 2013-05-21 07:45:49 PDT
Early Warning System Bot
Comment 13 2013-05-21 07:46:51 PDT
Mihai Maerean
Comment 14 2013-05-21 07:54:41 PDT
Comment on attachment 202427 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202427&action=review > Source/WebCore/rendering/RenderFlowThread.cpp:1007 > +void RenderFlowThread::popFlowThreadLayoutState() add an assert that you have content to pop.
Andrei Bucur
Comment 15 2013-05-21 08:01:57 PDT
Dave Hyatt
Comment 16 2013-05-23 14:39:57 PDT
Comment on attachment 202430 [details] Patch r=me. Good patch!
Andrei Bucur
Comment 17 2013-05-27 01:29:09 PDT
Created attachment 202954 [details] Patch for landing
WebKit Commit Bot
Comment 18 2013-05-27 02:41:33 PDT
Comment on attachment 202954 [details] Patch for landing Clearing flags on attachment: 202954 Committed r150743: <http://trac.webkit.org/changeset/150743>
WebKit Commit Bot
Comment 19 2013-05-27 02:41:36 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.