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.
Created attachment 202280 [details] Patch
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass qt-wk2-ews (qt-wk2): Output: http://webkit-queues.appspot.com/results/497639
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass qt-ews (qt): Output: http://webkit-queues.appspot.com/results/383103
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass gtk-ews (gtk): Output: http://webkit-queues.appspot.com/results/307331
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/299156
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass win-ews (win): Output: http://webkit-queues.appspot.com/results/438431
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/383116
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/289376
Comment on attachment 202280 [details] Patch Attachment 202280 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/527016
Created attachment 202427 [details] Patch
Comment on attachment 202427 [details] Patch Attachment 202427 [details] did not pass qt-ews (qt): Output: http://webkit-queues.appspot.com/results/525210
Comment on attachment 202427 [details] Patch Attachment 202427 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/524230
Comment on attachment 202427 [details] Patch Attachment 202427 [details] did not pass qt-wk2-ews (qt-wk2): Output: http://webkit-queues.appspot.com/results/365252
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.
Created attachment 202430 [details] Patch
Comment on attachment 202430 [details] Patch r=me. Good patch!
Created attachment 202954 [details] Patch for landing
Comment on attachment 202954 [details] Patch for landing Clearing flags on attachment: 202954 Committed r150743: <http://trac.webkit.org/changeset/150743>
All reviewed patches have been landed. Closing bug.