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

Issue 842913002: RenderCounter::updateCounter should trigger a relayout. (Closed)

Created:
5 years, 11 months ago by f(malita)
Modified:
5 years, 11 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, slimming-paint-reviews_chromium.org, Dominik Röttsches, jchaffraix+rendering, blink-reviews-paint_chromium.org, inferno, Julien - ping for review
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

RenderCounter::updateCounter should trigger a relayout. Currently, the method calls setTextInternal() - which updates the text but doesn't mark the node for layout and pref widths recalc. This can leave stale text boxes behind. Instead, we should use setText() - which triggers the needed invalidations. BUG=444707 R=jbroman@chromium.org,eae@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188180

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
A LayoutTests/fast/css/counters/stale-inline-box-crash.html View 1 chunk +42 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/counters/stale-inline-box-crash-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderCounter.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
f(malita)
5 years, 11 months ago (2015-01-08 18:25:41 UTC) #1
f(malita)
Jeremy pointed out that we're now invalidating layout while in FrameView::layout(). Taking a closer look, ...
5 years, 11 months ago (2015-01-08 18:46:18 UTC) #3
f(malita)
5 years, 11 months ago (2015-01-09 17:11:28 UTC) #5
eae
This looks right to me, updateCounters ia called early enough that it should be OK. ...
5 years, 11 months ago (2015-01-09 19:29:57 UTC) #6
f(malita)
Thanks!
5 years, 11 months ago (2015-01-10 04:21:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/842913002/1
5 years, 11 months ago (2015-01-10 04:22:30 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-10 04:26:22 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188180

Powered by Google App Engine
This is Rietveld 408576698