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

Issue 15001034: Improve shadow support in EllipsisBox. (Closed)

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

Description

Improve shadow support in EllipsisBox. Previously, the ellipsis generated by text-overflow: ellipsis would not render correctly if multiple text-shadows were specified, or if the text color was not opaque (but there was a shadow). This brings the behaviour of EllipsisBox more in line with InlineTextBox (as far as text-shadow is concerned). BUG=241073 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150534

Patch Set 1 #

Patch Set 2 : Added layout tests #

Patch Set 3 : merge with http://crrev.com/14593007 #

Total comments: 2

Patch Set 4 : address alokp's comment #

Total comments: 7

Patch Set 5 : textColor rename per schenney #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -17 lines) Patch
A LayoutTests/fast/css/text-overflow-ellipsis-multiple-shadows.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/text-overflow-ellipsis-multiple-shadows-expected.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/text-overflow-ellipsis-shadow-alpha.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/text-overflow-ellipsis-shadow-alpha-expected.html View 1 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/rendering/EllipsisBox.cpp View 1 2 3 4 1 chunk +48 lines, -17 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jbroman
I intend to refactor some of the logic for rendering these shadows in a following ...
7 years, 7 months ago (2013-05-15 14:54:49 UTC) #1
jbroman
Ping (still awaiting review).
7 years, 7 months ago (2013-05-16 15:22:02 UTC) #2
alokp
text-bounds lgtm after you address my comment. I defer to people more familiar with text ...
7 years, 7 months ago (2013-05-16 16:32:58 UTC) #3
jbroman
https://codereview.chromium.org/15001034/diff/8001/Source/core/rendering/EllipsisBox.cpp File Source/core/rendering/EllipsisBox.cpp (right): https://codereview.chromium.org/15001034/diff/8001/Source/core/rendering/EllipsisBox.cpp#newcode64 Source/core/rendering/EllipsisBox.cpp:64: textRunPaintInfo.bounds = FloatRect(boxOrigin, FloatSize(logicalWidth(), logicalHeight())); On 2013/05/16 16:32:58, Alok ...
7 years, 7 months ago (2013-05-16 16:43:17 UTC) #4
Stephen Chennney
Just some code clarity and robustness issues. https://codereview.chromium.org/15001034/diff/14001/Source/core/rendering/EllipsisBox.cpp File Source/core/rendering/EllipsisBox.cpp (right): https://codereview.chromium.org/15001034/diff/14001/Source/core/rendering/EllipsisBox.cpp#newcode41 Source/core/rendering/EllipsisBox.cpp:41: Color textColor ...
7 years, 7 months ago (2013-05-16 17:03:14 UTC) #5
jbroman
https://codereview.chromium.org/15001034/diff/14001/Source/core/rendering/EllipsisBox.cpp File Source/core/rendering/EllipsisBox.cpp (right): https://codereview.chromium.org/15001034/diff/14001/Source/core/rendering/EllipsisBox.cpp#newcode41 Source/core/rendering/EllipsisBox.cpp:41: Color textColor = style->visitedDependentColor(CSSPropertyWebkitTextFillColor); On 2013/05/16 17:03:14, Stephen Chenney ...
7 years, 7 months ago (2013-05-16 17:22:47 UTC) #6
Stephen Chennney
LGTM. https://codereview.chromium.org/15001034/diff/14001/Source/core/rendering/EllipsisBox.cpp File Source/core/rendering/EllipsisBox.cpp (right): https://codereview.chromium.org/15001034/diff/14001/Source/core/rendering/EllipsisBox.cpp#newcode76 Source/core/rendering/EllipsisBox.cpp:76: if (shadow->next() || !opaque) { On 2013/05/16 17:22:47, ...
7 years, 7 months ago (2013-05-16 17:34:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/15001034/17001
7 years, 7 months ago (2013-05-16 18:24:20 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=5833
7 years, 7 months ago (2013-05-16 19:38:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/15001034/17001
7 years, 7 months ago (2013-05-16 19:43:10 UTC) #10
commit-bot: I haz the power
7 years, 7 months ago (2013-05-16 20:20:41 UTC) #11
Message was sent while issue was closed.
Change committed as 150534

Powered by Google App Engine
This is Rietveld 408576698