RESOLVED FIXED Bug 125291
[CSS Regions] Implement visual overflow computation for inline elements
https://bugs.webkit.org/show_bug.cgi?id=125291
Summary [CSS Regions] Implement visual overflow computation for inline elements
Andrei Bucur
Reported 2013-12-05 02:01:53 PST
Currently only RenderBoxes have visual overflow computed per region. This means inline elements are incorrectly handled.
Attachments
Patch (28.89 KB, patch)
2014-01-08 01:57 PST, Andrei Bucur
no flags
Patch (28.88 KB, patch)
2014-01-08 09:06 PST, Andrei Bucur
no flags
Patch (30.19 KB, patch)
2014-01-09 01:30 PST, Andrei Bucur
no flags
Andrei Bucur
Comment 1 2014-01-08 01:57:47 PST
Mihai Maerean
Comment 2 2014-01-08 05:40:50 PST
Comment on attachment 220613 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220613&action=review > Source/WebCore/rendering/RenderFlowThread.cpp:845 > + return object->isBox() || object->isRenderInline(); There's a FIXME in RenderFlowThread::regionForCompositedLayer: "remove this when we'll have region ranges for inlines as well" > Source/WebCore/rendering/RenderRegion.cpp:718 > + return LayoutRect(); // FIXME: Should ASSERT_NOT_REACHED here? Why the FIXME comment? Just add the assert.
Andrei Bucur
Comment 3 2014-01-08 08:13:06 PST
(In reply to comment #2) > (From update of attachment 220613 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=220613&action=review > > > Source/WebCore/rendering/RenderFlowThread.cpp:845 > > + return object->isBox() || object->isRenderInline(); > > There's a FIXME in RenderFlowThread::regionForCompositedLayer: "remove this when we'll have region ranges for inlines as well" This patch doesn't provide ranges for inline elements (e.g. a div with display: inline-block), but the means to access the visual overflow in regions for more elements (RenderInlines in this case). > > > Source/WebCore/rendering/RenderRegion.cpp:718 > > + return LayoutRect(); // FIXME: Should ASSERT_NOT_REACHED here? > > Why the FIXME comment? Just add the assert. Will do.
Andrei Bucur
Comment 4 2014-01-08 09:06:38 PST
Mihai Maerean
Comment 5 2014-01-08 09:11:53 PST
Comment on attachment 220637 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220637&action=review > LayoutTests/fast/regions/overflow-in-variable-width-regions-inline.html:39 > +<p>The paragraph inside the regions must be fragmented. Each fragment must be relatively positioned based on the fragment position.</p> all tests should mention the number of the bug they test.
Andrei Bucur
Comment 6 2014-01-09 01:30:36 PST
Dave Hyatt
Comment 7 2014-01-09 10:55:58 PST
Comment on attachment 220702 [details] Patch r=me
WebKit Commit Bot
Comment 8 2014-01-10 02:34:18 PST
Comment on attachment 220702 [details] Patch Clearing flags on attachment: 220702 Committed r161626: <http://trac.webkit.org/changeset/161626>
WebKit Commit Bot
Comment 9 2014-01-10 02:34:20 PST
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.