WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 84624
RenderBlock incorrectly calculates pref width when a replaced object follows a RenderInline with width
https://bugs.webkit.org/show_bug.cgi?id=84624
Summary
RenderBlock incorrectly calculates pref width when a replaced object follows ...
tbsmark86
Reported
2012-04-23 13:16:31 PDT
Created
attachment 138408
[details]
Minimal example See attached example. In the current nightly build: The img from the first cell overlap into the second cell.
Attachments
Minimal example
(1.01 KB, text/html)
2012-04-23 13:16 PDT
,
tbsmark86
no flags
Details
Patch
(8.27 KB, patch)
2012-07-27 00:13 PDT
,
Arpita Bahuguna
no flags
Details
Formatted Diff
Diff
Patch
(7.65 KB, patch)
2012-09-25 23:53 PDT
,
Arpita Bahuguna
no flags
Details
Formatted Diff
Diff
Patch
(7.19 KB, patch)
2012-09-28 04:08 PDT
,
Arpita Bahuguna
no flags
Details
Formatted Diff
Diff
Patch
(7.18 KB, patch)
2012-09-29 04:16 PDT
,
Arpita Bahuguna
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Arpita Bahuguna
Comment 1
2012-07-27 00:13:50 PDT
Created
attachment 154859
[details]
Patch
Allan Sandfeld Jensen
Comment 2
2012-08-27 05:25:59 PDT
Comment on
attachment 154859
[details]
Patch As non-reviewer review, this looks good to me, and I can confirm this matches the result in other browsers. Julien, what do you think?
Julien Chaffraix
Comment 3
2012-09-24 11:52:31 PDT
Comment on
attachment 154859
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154859&action=review
> Julien, what do you think?
This patch will impact any RenderBlocks and not just RenderTableCells. The ChangeLog seems to suggest that this is table cell specific so it should be clarified.
> Source/WebCore/rendering/RenderBlock.cpp:5872 > + isPrevChildInlineFlow = false;
Interestingly, we don't set isPrevChildInlineFlow in the else branch below which looks suspicious. Ideally you want to update |isPrevChildInlineFlow| for every iteration so it should probably be pushed to the end of the while loop (outside of any branch to garantee that it is updated)
Julien Chaffraix
Comment 4
2012-09-24 11:53:02 PDT
Leviw knows this code better and may have some comments.
Arpita Bahuguna
Comment 5
2012-09-25 23:53:34 PDT
Created
attachment 165738
[details]
Patch
Arpita Bahuguna
Comment 6
2012-09-26 04:56:28 PDT
(In reply to
comment #3
)
> (From update of
attachment 154859
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=154859&action=review
> Thanks Julien for reviewing the patch. Have made changes as per your comments. I agree, it would be safer to update |isPrevChildInlineFlow| at the end of the while loop. Have modified the changelog as well. Shall ping Leviw for further reviews.
> > Julien, what do you think? > > This patch will impact any RenderBlocks and not just RenderTableCells. The ChangeLog seems to suggest that this is table cell specific so it should be clarified. > > > Source/WebCore/rendering/RenderBlock.cpp:5872 > > + isPrevChildInlineFlow = false; > > Interestingly, we don't set isPrevChildInlineFlow in the else branch below which looks suspicious. Ideally you want to update |isPrevChildInlineFlow| for every iteration so it should probably be pushed to the end of the while loop (outside of any branch to garantee that it is updated)
Levi Weintraub
Comment 7
2012-09-26 13:01:43 PDT
Updating the title since this isn't table-specific. The fix LGTM. The test case really belongs in fast/block (and not using tables).
Arpita Bahuguna
Comment 8
2012-09-28 04:08:38 PDT
Created
attachment 166200
[details]
Patch
Arpita Bahuguna
Comment 9
2012-09-28 05:59:28 PDT
(In reply to
comment #7
)
> Updating the title since this isn't table-specific. The fix LGTM. The test case really belongs in fast/block (and not using tables).
Thanks for the review Levi. Have moved the testcase to fast/block and removed the dependency on tables as well.
Levi Weintraub
Comment 10
2012-09-28 10:13:42 PDT
Comment on
attachment 166200
[details]
Patch Thank you for the fix! LGTM.
Levi Weintraub
Comment 11
2012-09-28 10:14:08 PDT
Comment on
attachment 166200
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=166200&action=review
> LayoutTests/ChangeLog:8 > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).
Whoops... missed this :(
Arpita Bahuguna
Comment 12
2012-09-29 04:16:40 PDT
Created
attachment 166358
[details]
Patch
Build Bot
Comment 13
2012-09-29 04:42:52 PDT
Comment on
attachment 166358
[details]
Patch
Attachment 166358
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14080214
New failing tests: http/tests/workers/terminate-during-sync-operation.html
Arpita Bahuguna
Comment 14
2012-09-29 05:07:16 PDT
(In reply to
comment #11
)
> (From update of
attachment 166200
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=166200&action=review
> > > LayoutTests/ChangeLog:8 > > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). > > Whoops... missed this :(
Thanks for the review Levi and apologize for missing out on removing that line from the changelog. Have uploaded another patch now, albeit it fails for mac port this time. :( The failing test case though seems to be unrelated to my changes; it verifies web workers.
WebKit Review Bot
Comment 15
2012-10-01 11:16:02 PDT
Comment on
attachment 166358
[details]
Patch Clearing flags on attachment: 166358 Committed
r130057
: <
http://trac.webkit.org/changeset/130057
>
WebKit Review Bot
Comment 16
2012-10-01 11:16:07 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