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

Issue 1156143002: *** NOT FOR LANDING *** Text nodes should only inherit inheritable properties. (Closed)

Created:
5 years, 7 months ago by mstensho (USE GERRIT)
Modified:
5 years, 6 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, dglazkov+blink, rwlbuis
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

*** NOT FOR LANDING *** Text nodes should only inherit inheritable properties. Trying this instead of adding more workarounds [1] for over-styled text nodes. [1] https://codereview.chromium.org/1149333003/

Patch Set 1 #

Patch Set 2 : Need to take care of this in LayoutTreeBuilderForText::createLayoutObject() too. #

Patch Set 3 : Remove isText() cruft #

Patch Set 4 : Oh... BR elements are text layout objects. #

Patch Set 5 : Moar inheritable-only style copying. #

Patch Set 6 : Make ::selection work as expected. #

Patch Set 7 : Make -webkit-text-combine (non-inherited) work. #

Patch Set 8 : Just copy all SVG properties. #

Total comments: 1

Patch Set 9 : Some tests need to be rebaselined. Text nodes can no longer have z-index. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -67 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/FirstLetterPseudoElement.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/LayoutTreeBuilder.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 1 comment Download
M Source/core/frame/FrameView.cpp View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/layout/LayoutBlock.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutCounter.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/layout/LayoutObject.h View 1 2 2 chunks +3 lines, -13 lines 0 comments Download
M Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 9 chunks +13 lines, -28 lines 0 comments Download
M Source/core/layout/LayoutQuote.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/layout/LayoutTableSection.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutText.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 2 comments Download
M Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/layout/line/InlineFlowBox.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/style/ComputedStyle.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
mstensho (USE GERRIT)
There are still some issues to solve here: Need to fix https://code.google.com/p/chromium/issues/detail?id=492785 and https://code.google.com/p/chromium/issues/detail?id=492602 first. ...
5 years, 6 months ago (2015-05-29 13:13:42 UTC) #2
leviw_travelin_and_unemployed
https://codereview.chromium.org/1156143002/diff/160001/Source/core/dom/LayoutTreeBuilder.cpp File Source/core/dom/LayoutTreeBuilder.cpp (right): https://codereview.chromium.org/1156143002/diff/160001/Source/core/dom/LayoutTreeBuilder.cpp#newcode152 Source/core/dom/LayoutTreeBuilder.cpp:152: RefPtr<ComputedStyle> style = ComputedStyle::createWithInheritableProperties(parentStyle); Have you ran the perf ...
5 years, 6 months ago (2015-05-29 17:44:52 UTC) #3
Julien - ping for review
The change looks like a great simplification. Like Levi, I would expect this code to ...
5 years, 6 months ago (2015-06-01 19:13:48 UTC) #4
mstensho (USE GERRIT)
So far, testing seems to show that some performance tests are 5-10% slower, while some ...
5 years, 6 months ago (2015-06-01 19:31:37 UTC) #5
esprehn
We intentionally don't malloc LayoutStyle objects for text nodes since that means higher memory usage. ...
5 years, 6 months ago (2015-06-02 22:54:08 UTC) #6
mstensho (USE GERRIT)
On 2015/06/02 22:54:08, esprehn wrote: > We intentionally don't malloc LayoutStyle objects for text nodes ...
5 years, 6 months ago (2015-06-03 10:40:28 UTC) #7
mstensho (USE GERRIT)
5 years, 6 months ago (2015-06-04 18:09:35 UTC) #8
Dropping this

Powered by Google App Engine
This is Rietveld 408576698