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

Issue 280503003: Fix incorrect style recalculation of text-decoration properties. (Closed)

Created:
6 years, 7 months ago by andersr
Modified:
6 years, 7 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix incorrect style recalculation of text-decoration properties. This change adds the color and style of each decoration to the AppliedTextDecoration class. This is needed to make RenderStyle diffs compute correctly when the color or style of a decoration is changed. The color-resolving code in RenderObject has been moved to RenderStyle to enable use from both RenderStyle and RenderObject. This patch also makes it possible to implement multiple decorations on the same line. (A future patch). BUG=350840, 315271 TEST=text-decoration-color-recalc.html text-decoration-style-recalc.html text-decoration-line-recalc.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174285

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Patch Set 3 : Address review issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -29 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-color-recalc.html View 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-color-recalc-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-line-recalc.html View 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-line-recalc-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-style-recalc.html View 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-style-recalc-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 3 chunks +2 lines, -19 lines 0 comments Download
M Source/core/rendering/style/AppliedTextDecoration.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/style/AppliedTextDecoration.cpp View 1 chunk +12 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 2 chunks +32 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
andersr
6 years, 7 months ago (2014-05-16 09:50:01 UTC) #1
Julien - ping for review
lgtm https://codereview.chromium.org/280503003/diff/1/Source/core/rendering/style/AppliedTextDecoration.h File Source/core/rendering/style/AppliedTextDecoration.h (right): https://codereview.chromium.org/280503003/diff/1/Source/core/rendering/style/AppliedTextDecoration.h#newcode22 Source/core/rendering/style/AppliedTextDecoration.h:22: bool isSimple() const { return m_style == TextDecorationStyleSolid ...
6 years, 7 months ago (2014-05-19 10:30:17 UTC) #2
andersr
https://codereview.chromium.org/280503003/diff/1/Source/core/rendering/style/AppliedTextDecoration.h File Source/core/rendering/style/AppliedTextDecoration.h (right): https://codereview.chromium.org/280503003/diff/1/Source/core/rendering/style/AppliedTextDecoration.h#newcode22 Source/core/rendering/style/AppliedTextDecoration.h:22: bool isSimple() const { return m_style == TextDecorationStyleSolid && ...
6 years, 7 months ago (2014-05-19 12:54:02 UTC) #3
andersr
The CQ bit was checked by andersr@opera.com
6 years, 7 months ago (2014-05-19 12:54:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andersr@opera.com/280503003/40001
6 years, 7 months ago (2014-05-19 12:54:28 UTC) #5
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 14:11:36 UTC) #6
Message was sent while issue was closed.
Change committed as 174285

Powered by Google App Engine
This is Rietveld 408576698