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

Issue 2025543002: Fix when orthogonal writing mode roots have floating siblings (Closed)

Created:
4 years, 6 months ago by kojii
Modified:
4 years, 3 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix when orthogonal writing mode roots have floating siblings When orthogonal writing mode roots have floating siblings, its containing block may still have old or even deleted LayoutObjects. This occurs when LayoutMultiColumnFlowThread::populate(), LayoutBoxModelObject::moveChildrenTo() with !fullRemoveInsert, or more, for the optimization purposes. This patch clears such objects to be re-created when the containing block is laid out. BUG=604095, 633409, 646178 Committed: https://crrev.com/5c43382692e6b687373576984181e52c30ccd142 Cr-Commit-Position: refs/heads/master@{#419376}

Patch Set 1 #

Patch Set 2 : Fix removeFloatingOrPositionedChildFromBlockLists #

Total comments: 1

Patch Set 3 : 3rd option #

Total comments: 2

Patch Set 4 : Approach 3, with more restrictive condition #

Patch Set 5 : Approach 1, restrict the condition more, add comments #

Patch Set 6 : Update comments as per robhogan review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/writing-mode/orthogonal-writing-modes-floats-crash.html View 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/writing-mode/orthogonal-writing-modes-floats-crash-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 69 (37 generated)
kojii
PTAL. A few notes: 1. I'm not sure whether it's ok just to removeFloatingObjects(). Should ...
4 years, 6 months ago (2016-05-29 17:05:53 UTC) #3
kojii
+eae@, does this look right?
4 years, 6 months ago (2016-05-30 17:38:03 UTC) #8
rhogan
On 2016/05/29 at 17:05:53, kojii wrote: > PTAL. > > A few notes: > 1. ...
4 years, 6 months ago (2016-05-30 18:10:25 UTC) #9
kojii
On 2016/05/30 at 18:10:25, robhogan wrote: > On 2016/05/29 at 17:05:53, kojii wrote: > > ...
4 years, 6 months ago (2016-05-30 18:22:04 UTC) #10
rhogan
On 2016/05/30 at 18:22:04, kojii wrote: > But it does not solve 604095 where LayoutObject ...
4 years, 6 months ago (2016-05-30 18:39:36 UTC) #11
kojii
On 2016/05/30 at 18:22:04, kojii wrote: > On 2016/05/30 at 18:10:25, robhogan wrote: > > ...
4 years, 6 months ago (2016-05-31 03:55:59 UTC) #12
kojii
robhogan@, did the screenshot answered to your question, or do I still not understand your ...
4 years, 6 months ago (2016-06-06 07:11:37 UTC) #13
rhogan
https://codereview.chromium.org/2025543002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2025543002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1787 third_party/WebKit/Source/core/frame/FrameView.cpp:1787: toLayoutBlockFlow(cb)->removeFloatingObjects(); Per my note on the bug, we should ...
4 years, 6 months ago (2016-06-06 09:41:02 UTC) #15
kojii
On 2016/06/06 at 09:41:02, robhogan wrote: > https://codereview.chromium.org/2025543002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp > File third_party/WebKit/Source/core/frame/FrameView.cpp (right): > > https://codereview.chromium.org/2025543002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1787 ...
4 years, 6 months ago (2016-06-06 11:01:56 UTC) #16
rhogan
On 2016/06/06 at 11:01:56, kojii wrote: > On 2016/06/06 at 09:41:02, robhogan wrote: > > ...
4 years, 6 months ago (2016-06-06 11:16:06 UTC) #17
kojii
On 2016/06/06 at 11:16:06, robhogan wrote: > Won't orthogonal layout be incorrect in this situation ...
4 years, 6 months ago (2016-06-06 11:19:25 UTC) #18
kojii
BTW, if you object to this CL, I don't think it's a good idea to ...
4 years, 6 months ago (2016-06-06 11:28:11 UTC) #19
rhogan
On 2016/06/06 at 11:19:25, kojii wrote: > On 2016/06/06 at 11:16:06, robhogan wrote: > > ...
4 years, 6 months ago (2016-06-06 11:31:28 UTC) #20
kojii
On 2016/06/06 at 11:31:28, robhogan wrote: > We lay this out correctly at the moment, ...
4 years, 6 months ago (2016-06-06 11:36:41 UTC) #21
kojii
Here's a suggestion. 1. Skipping orthogonal writing-mode roots layout can produce incorrect layout if shrink-to-fit. ...
4 years, 6 months ago (2016-06-06 12:45:29 UTC) #22
kojii
PTAL, the 3rd option. I found LayoutTable avoids to call shrinkLogicalWidthToAvoidFloats() if cb is perpendicular: ...
4 years, 6 months ago (2016-06-06 14:25:04 UTC) #23
kojii
huh, no, the 3rd option fails two tests...we need 4th option, but I don't have ...
4 years, 6 months ago (2016-06-06 15:38:07 UTC) #24
eae
+szager,wkorman as they've been thinking about writing modes recently
4 years, 6 months ago (2016-06-06 17:28:36 UTC) #26
kojii
While PS1/PS2 can fix both https://crbug.com/604095 and https://crbug.com/613869, the root cause of the latter is ...
4 years, 6 months ago (2016-06-07 17:10:02 UTC) #27
wkorman
It sounds like you are working on a 4th approach, or does this in fact ...
4 years, 6 months ago (2016-06-08 18:23:34 UTC) #29
kojii
Thank you for having a look. On 2016/06/08 at 18:23:34, wkorman wrote: > It sounds ...
4 years, 6 months ago (2016-06-09 01:57:59 UTC) #30
wkorman
On 2016/06/09 at 01:57:59, kojii wrote: > Thank you for having a look. > > ...
4 years, 6 months ago (2016-06-13 21:09:42 UTC) #31
kojii
Oh, wow, someone has fixed this, so this CL is no longer necessary ;) Thank ...
4 years, 6 months ago (2016-06-14 01:05:10 UTC) #32
kojii
Re-opening for crbug.com/646178
4 years, 3 months ago (2016-09-14 14:44:22 UTC) #33
eae
OK but please allow robhogan to comment before landing. LGTM
4 years, 3 months ago (2016-09-15 09:23:44 UTC) #53
kojii
robhogan@, could you mind to have a look? There's a minor improvement, and I have ...
4 years, 3 months ago (2016-09-16 10:11:34 UTC) #56
rhogan
On 2016/09/16 at 10:11:34, kojii wrote: > Those direct children go through removeChildNode() and thus ...
4 years, 3 months ago (2016-09-16 18:39:02 UTC) #57
kojii
Thank you for the review! Updated the comment according to your advice. On 2016/09/16 at ...
4 years, 3 months ago (2016-09-17 05:42:04 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2025543002/180001
4 years, 3 months ago (2016-09-17 09:51:35 UTC) #65
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 3 months ago (2016-09-17 19:40:18 UTC) #66
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/5c43382692e6b687373576984181e52c30ccd142 Cr-Commit-Position: refs/heads/master@{#419376}
4 years, 3 months ago (2016-09-17 19:43:09 UTC) #68
kojii
4 years, 3 months ago (2016-09-17 21:04:15 UTC) #69
Message was sent while issue was closed.
For "the correct behaviour isn't particularly clear" part, it'd be probably
easier to discuss with a whiteboard. If you will attend BlinkOn, I look forward
to seeing you there.

Powered by Google App Engine
This is Rietveld 408576698