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

Issue 10829261: Don't reset the layout on RenderText display rect width change. (Closed)

Created:
8 years, 4 months ago by Alexei Svitkine (slow)
Modified:
8 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews
Visibility:
Public.

Description

Don't reset the layout on RenderText display rect width change. Previously, I thought width was used in layout in render_text_linux.cc, but it turns out that the width that's passed in to SetupPangoLayout() gets cleared right after. So the width of the display rect does not actually affect layout and thus does not need to cause the layout to be reset. BUG=137064 TEST=No behavior change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150908

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M ui/gfx/render_text.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/render_text_linux.cc View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
Alexei Svitkine (slow)
8 years, 4 months ago (2012-08-09 19:31:55 UTC) #1
msw
FYI, it *should* invalidate the layout for multi-line use once that's supported, but that's not ...
8 years, 4 months ago (2012-08-09 19:54:49 UTC) #2
Alexei Svitkine (slow)
http://codereview.chromium.org/10829261/diff/1/ui/gfx/render_text_linux.cc File ui/gfx/render_text_linux.cc (right): http://codereview.chromium.org/10829261/diff/1/ui/gfx/render_text_linux.cc#newcode286 ui/gfx/render_text_linux.cc:286: 0, On 2012/08/09 19:54:50, msw wrote: > Why not ...
8 years, 4 months ago (2012-08-09 20:03:01 UTC) #3
msw
Ah, gotcha, LGTM!
8 years, 4 months ago (2012-08-09 20:31:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10829261/1
8 years, 4 months ago (2012-08-09 20:34:04 UTC) #5
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 21:52:00 UTC) #6
Change committed as 150908

Powered by Google App Engine
This is Rietveld 408576698