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

Issue 1661983002: Don't propagate bbox for empty <text> to ancestors (Closed)

Created:
4 years, 10 months ago by fs
Modified:
4 years, 10 months ago
Reviewers:
pdr., Stephen Chennney
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

Don't propagate bbox for empty <text> to ancestors If we have a <text> element which is "empty" (essentially has no text content after collapsing spaces), then its bounding box would be empty, but would still be propagated to the bounding boxes of the ancestors - which could span them out to be bigger than expected. Similarly they could be subject to their userspace transform with a similar effect. Skip propagation of empty <text> element - where "empty" is defined as "has no line boxes". BUG=450229 Committed: https://crrev.com/9960fef706fbd5429e65360e3ebeecce63c8c8f0 Cr-Commit-Position: refs/heads/master@{#373501}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/svg/text/text-bbox-empty.html View 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
fs
4 years, 10 months ago (2016-02-03 17:50:21 UTC) #2
Stephen Chennney
lgtm for this situation. A similar issue came up years back, and I wanted to ...
4 years, 10 months ago (2016-02-03 19:10:28 UTC) #4
fs
On 2016/02/03 at 19:10:28, schenney wrote: > lgtm for this situation. > > A similar ...
4 years, 10 months ago (2016-02-03 21:16:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661983002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661983002/1
4 years, 10 months ago (2016-02-04 09:33:33 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-04 10:48:50 UTC) #8
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 10:49:47 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9960fef706fbd5429e65360e3ebeecce63c8c8f0
Cr-Commit-Position: refs/heads/master@{#373501}

Powered by Google App Engine
This is Rietveld 408576698