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

Issue 1149333003: Ignore style changes on text node flowthread descendants. (Closed)

Created:
5 years, 7 months ago by mstensho (USE GERRIT)
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Ignore style changes on text node flowthread descendants. Text nodes inherit every property from their parent, including non-inheritable ones! If the parent DOM node is the multicol container, and its 'position' goes from 'static' to 'absolute', so will any text node child, as far as ComputedStyle is concerned. If the multicol container only contains a text node child, we'd incorrectly think that the multicol container started to only contain an out-of-flow child, so that the column set could be removed. Also don't notify the flowthread about descendant style changes if the descendant in question is the flow thread (Calling flowThreadContainingBlock() on the flow thread returns the flow thread). There's currently no way any harm could be done if the flow tread were indeed treated as a descendant of itself here, but it's just wrong and bad. BUG=491409 R=dsinclair@chromium.org,jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196508

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
A LayoutTests/fast/multicol/multicol-becomes-abspos-crash.html View 1 chunk +14 lines, -0 lines 0 comments Download
A + LayoutTests/fast/multicol/multicol-becomes-abspos-crash-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/layout/LayoutMultiColumnFlowThread.cpp View 2 chunks +14 lines, -0 lines 2 comments Download

Messages

Total messages: 10 (1 generated)
dsinclair
https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp File Source/core/layout/LayoutMultiColumnFlowThread.cpp (right): https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp#newcode649 Source/core/layout/LayoutMultiColumnFlowThread.cpp:649: // Text nodes inherit all properties from the parent ...
5 years, 7 months ago (2015-05-25 13:42:48 UTC) #1
mstensho (USE GERRIT)
https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp File Source/core/layout/LayoutMultiColumnFlowThread.cpp (right): https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp#newcode649 Source/core/layout/LayoutMultiColumnFlowThread.cpp:649: // Text nodes inherit all properties from the parent ...
5 years, 7 months ago (2015-05-25 18:25:13 UTC) #2
dsinclair
On 2015/05/25 at 18:25:13, mstensho wrote: > https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp > File Source/core/layout/LayoutMultiColumnFlowThread.cpp (right): > > https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp#newcode649 ...
5 years, 7 months ago (2015-05-25 18:27:42 UTC) #3
rune
On 2015/05/25 18:27:42, dsinclair wrote: > On 2015/05/25 at 18:25:13, mstensho wrote: > > > ...
5 years, 7 months ago (2015-05-26 09:47:31 UTC) #4
mstensho (USE GERRIT)
On 2015/05/25 18:25:13, mstensho wrote: > https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp > File Source/core/layout/LayoutMultiColumnFlowThread.cpp (right): > > https://codereview.chromium.org/1149333003/diff/1/Source/core/layout/LayoutMultiColumnFlowThread.cpp#newcode649 > ...
5 years, 6 months ago (2015-05-29 13:16:19 UTC) #5
mstensho (USE GERRIT)
On 2015/05/25 18:27:42, dsinclair wrote: > On 2015/05/25 at 18:25:13, mstensho wrote: > > > ...
5 years, 6 months ago (2015-06-04 07:08:08 UTC) #6
dsinclair
lgtm
5 years, 6 months ago (2015-06-04 13:55:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149333003/1
5 years, 6 months ago (2015-06-04 13:55:11 UTC) #9
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 15:00:44 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196508

Powered by Google App Engine
This is Rietveld 408576698