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

Issue 1865923002: Invalidate text metrics when the <text> subtree is mutated (Closed)

Created:
4 years, 8 months ago by fs
Modified:
4 years, 8 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate text metrics when the <text> subtree is mutated When the content of a text node is modified, we would only invalidate positioning values and not text metrics. This would lead to incorrect or inconsistent text metrics/fonts being used, which would lead to repaint bugs and similar issues. Make sure all mutations to the <text> subtree trigger text metrics re- computation. Also take this opportunity to move the definition of the willBeDestroyed() method for slightly better grouping. BUG=299497, 594058 Committed: https://crrev.com/f19c8c6644e933e57a20d518b6ef62e2358ac1ad Cr-Commit-Position: refs/heads/master@{#386300}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp View 3 chunks +10 lines, -8 lines 4 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (3 generated)
fs
4 years, 8 months ago (2016-04-06 14:41:38 UTC) #2
pdr.
https://codereview.chromium.org/1865923002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp (right): https://codereview.chromium.org/1865923002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp#newcode133 third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp:133: invalidatePositioningValues(LayoutInvalidationReason::ChildChanged); setNeedsTextMetricsUpdate() requires that we mark the object for ...
4 years, 8 months ago (2016-04-06 23:31:40 UTC) #3
fs
https://codereview.chromium.org/1865923002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp (right): https://codereview.chromium.org/1865923002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp#newcode133 third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp:133: invalidatePositioningValues(LayoutInvalidationReason::ChildChanged); On 2016/04/06 at 23:31:40, pdr wrote: > setNeedsTextMetricsUpdate() ...
4 years, 8 months ago (2016-04-07 09:00:00 UTC) #4
pdr.
Overcommunicating because I don't want to keep you waiting. When you said "I'll look into ...
4 years, 8 months ago (2016-04-07 22:46:12 UTC) #5
fs
On 2016/04/07 at 22:46:12, pdr wrote: > Overcommunicating because I don't want to keep you ...
4 years, 8 months ago (2016-04-08 08:07:03 UTC) #6
fs
On 2016/04/08 at 08:07:03, fs wrote: > On 2016/04/07 at 22:46:12, pdr wrote: > > ...
4 years, 8 months ago (2016-04-08 13:23:20 UTC) #7
pdr.
On 2016/04/08 at 13:23:20, fs wrote: > On 2016/04/08 at 08:07:03, fs wrote: > > ...
4 years, 8 months ago (2016-04-08 22:37:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865923002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865923002/1
4 years, 8 months ago (2016-04-09 12:52:48 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-09 16:39:08 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 16:40:55 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f19c8c6644e933e57a20d518b6ef62e2358ac1ad
Cr-Commit-Position: refs/heads/master@{#386300}

Powered by Google App Engine
This is Rietveld 408576698