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

Issue 751483002: Fix bug from 3db9471ae80bd492f2a346113d2323ba8eee0c09. (Closed)

Created:
6 years, 1 month ago by ojan
Modified:
6 years, 1 month ago
CC:
abarth-chromium, esprehn, mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Fix text-overflow:ellipsis. This regressed in 3db9471ae80bd492f2a346113d2323ba8eee0c09. Accidentally sent some code down the override by sending the top LayoutUnit instead of the left/right LayoutUnit. The root problem was bad overloading, which is also fixed in this patch. Inlined the overloaded method since one of the calls was only called from one place. The new test demonstrates the ellipsizing, but that doesn't show through in the render tree dump. We don't get real test coverage here until we either start doing pixel tests or start exposing ellipsis in the render tree dumps. R=esprehn@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/dee89ae6f794d0a28fa9d33e7485ae60c7a43e18

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -25 lines) Patch
M sky/engine/core/rendering/RenderBlockFlow.h View 2 chunks +8 lines, -17 lines 0 comments Download
M sky/engine/core/rendering/RenderBlockLineLayout.cpp View 4 chunks +7 lines, -8 lines 2 comments Download
A sky/tests/layout/ellipsis.sky View 1 chunk +25 lines, -0 lines 0 comments Download
A sky/tests/layout/ellipsis-expected.txt View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
ojan
https://codereview.chromium.org/751483002/diff/1/sky/engine/core/rendering/RenderBlockLineLayout.cpp File sky/engine/core/rendering/RenderBlockLineLayout.cpp (right): https://codereview.chromium.org/751483002/diff/1/sky/engine/core/rendering/RenderBlockLineLayout.cpp#newcode1211 sky/engine/core/rendering/RenderBlockLineLayout.cpp:1211: // 2) If you're an anonymous paragraph with a ...
6 years, 1 month ago (2014-11-21 05:35:51 UTC) #2
esprehn
lgtm, it would be nice to give the patch a better title than "fixed a ...
6 years, 1 month ago (2014-11-21 06:10:44 UTC) #3
ojan
6 years, 1 month ago (2014-11-21 19:26:09 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
dee89ae6f794d0a28fa9d33e7485ae60c7a43e18 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698