Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Issue 268833003: Refactor avoidsFloats() to reflect CSS2.1 spec more clearly (Closed)

Created:
6 years, 7 months ago by rhogan
Modified:
6 years, 1 month ago
CC:
blink-reviews, blink-reviews-rendering, dsinclair, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mstensho+blink_opera.com, pdr., rune+blink, zoltan1
Visibility:
Public.

Description

Refactor avoidsFloats() to reflect CSS2.1 spec more clearly Introduce the 'createsBlockFormatting' concept to RenderBlock::avoidsFloats() and remove a couple of now-redundant virtualizations of the function. BUG=388757

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 1

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Total comments: 1

Patch Set 5 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -24 lines) Patch
A LayoutTests/fast/block/float/block-formatting-context-crash.html View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A + LayoutTests/fast/block/float/block-formatting-context-crash-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderBlock.h View 1 2 3 chunks +1 line, -3 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 2 3 4 6 chunks +5 lines, -12 lines 0 comments Download
M Source/core/rendering/RenderBox.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M Source/core/rendering/RenderFieldset.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
rhogan
6 years, 7 months ago (2014-05-06 17:38:12 UTC) #1
leviw_travelin_and_unemployed
lgtm
6 years, 7 months ago (2014-05-06 18:16:14 UTC) #2
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 7 months ago (2014-05-07 18:09:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/268833003/1
6 years, 7 months ago (2014-05-07 18:10:51 UTC) #4
commit-bot: I haz the power
Change committed as 173549
6 years, 7 months ago (2014-05-07 18:22:40 UTC) #5
rhogan
A revert of this CL has been created in https://codereview.chromium.org/298913002/ by robhogan@gmail.com. The reason for ...
6 years, 7 months ago (2014-05-21 21:50:46 UTC) #6
rhogan
A revert of this CL has been created in https://codereview.chromium.org/296983005/ by robhogan@gmail.com. The reason for ...
6 years, 7 months ago (2014-05-22 18:03:27 UTC) #7
rhogan
https://codereview.chromium.org/268833003/diff/20001/Source/core/rendering/RenderBlockFlow.cpp File Source/core/rendering/RenderBlockFlow.cpp (right): https://codereview.chromium.org/268833003/diff/20001/Source/core/rendering/RenderBlockFlow.cpp#newcode1837 Source/core/rendering/RenderBlockFlow.cpp:1837: bool canPropagateFloatIntoSibling = !avoidsOrIgnoresFloats(); This is why the previous ...
6 years, 6 months ago (2014-06-17 21:53:16 UTC) #8
leviw_travelin_and_unemployed
On 2014/06/17 at 21:53:16, robhogan wrote: > https://codereview.chromium.org/268833003/diff/20001/Source/core/rendering/RenderBlockFlow.cpp > File Source/core/rendering/RenderBlockFlow.cpp (right): > > https://codereview.chromium.org/268833003/diff/20001/Source/core/rendering/RenderBlockFlow.cpp#newcode1837 ...
6 years, 6 months ago (2014-06-17 22:08:59 UTC) #9
rhogan
On 2014/06/17 at 22:08:59, leviw wrote: > On 2014/06/17 at 21:53:16, robhogan wrote: > > ...
6 years, 6 months ago (2014-06-18 20:07:10 UTC) #10
leviw_travelin_and_unemployed
On 2014/06/18 20:07:10, rhogan wrote: > On 2014/06/17 at 22:08:59, leviw wrote: > > On ...
6 years, 6 months ago (2014-06-18 21:01:54 UTC) #11
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 6 months ago (2014-06-19 21:28:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/268833003/20001
6 years, 6 months ago (2014-06-19 21:29:14 UTC) #13
commit-bot: I haz the power
Change committed as 176557
6 years, 6 months ago (2014-06-19 22:29:16 UTC) #14
rhogan
A revert of this CL has been created in https://codereview.chromium.org/330913007/ by robhogan@gmail.com. The reason for ...
6 years, 6 months ago (2014-06-25 17:20:41 UTC) #15
rhogan
6 years, 1 month ago (2014-11-11 19:17:13 UTC) #16
https://codereview.chromium.org/268833003/diff/60001/Source/core/rendering/Re...
File Source/core/rendering/RenderBlockFlow.cpp (right):

https://codereview.chromium.org/268833003/diff/60001/Source/core/rendering/Re...
Source/core/rendering/RenderBlockFlow.cpp:1920: s_canPropagateFloatIntoSibling =
oldStyle ? !avoidsOrIgnoresFloats() : false;
I had !createsBlockFormattingContext() here; which is consistent with the logic
elsewhere. This seems like a good candidate for the cause of the crash in bug
388757 (which I can't recreate).

Powered by Google App Engine
This is Rietveld 408576698