WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
118531
[CSS Regions] In a region chain with auto-height regions, lines get their length based only on the first region
https://bugs.webkit.org/show_bug.cgi?id=118531
Summary
[CSS Regions] In a region chain with auto-height regions, lines get their len...
Mihai Balan
Reported
2013-07-10 08:39:34 PDT
Created
attachment 206392
[details]
Test-case If a region chain has regions with height: auto and specified widths, line breaking will not take into consideration the width of the current region, but the width of the first region. This can lead to text overflowing a region (if narrower than the first region) or to regions unnecessarily tall and with unneeded whitespace (if wider than the first region).
Attachments
Test-case
(827 bytes, text/html)
2013-07-10 08:39 PDT
,
Mihai Balan
no flags
Details
Patch
(13.73 KB, patch)
2013-07-11 07:51 PDT
,
Andrei Bucur
no flags
Details
Formatted Diff
Diff
Patch
(13.59 KB, patch)
2013-07-11 08:22 PDT
,
Andrei Bucur
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andrei Bucur
Comment 1
2013-07-11 07:51:11 PDT
Created
attachment 206463
[details]
Patch
Alexandru Chiculita
Comment 2
2013-07-11 08:02:38 PDT
Comment on
attachment 206463
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=206463&action=review
Looks good.
> Source/WebCore/rendering/RenderFlowThread.cpp:267 > + ASSERT(computedValues.m_extent >= 0);
Looks like having no regions will hit this assert computedValues.m_extent >= 0
> Source/WebCore/rendering/RenderFlowThread.h:171 > + static LayoutUnit maxFlowThreadSize() { return LayoutUnit::max() / 2; }
nit: I would not repeat the flowThread in the name and I think we should mention that it refers to the logicalHeight of the flow. What about maxLogicalHeight() ? Add a comment that it is used to estimate the size of the flow.
Andrei Bucur
Comment 3
2013-07-11 08:22:23 PDT
Created
attachment 206467
[details]
Patch
WebKit Commit Bot
Comment 4
2013-07-11 09:18:34 PDT
Comment on
attachment 206467
[details]
Patch Clearing flags on attachment: 206467 Committed
r152572
: <
http://trac.webkit.org/changeset/152572
>
WebKit Commit Bot
Comment 5
2013-07-11 09:18:37 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.
Top of Page
Format For Printing
XML
Clone This Bug