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

Issue 1545443002: Helper for checking if an SVGTextFragment is transformed (Closed)

Created:
5 years ago by fs
Modified:
5 years ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, krit, eae+blinkwatch, f(malita), fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, 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

Helper for checking if an SVGTextFragment is transformed Add a isTransformed() helper to SVGTextFragment. Since it's a commonly recurring pattern to compute the fragment transform and then check if it is the identity transform - and doing the check before actually computing the transform is only marginally more expensive (since we know the structure of SVGTextFragment::lengthAdjustTransform) we can use this helper and switch order of computation and check. The only potential downside would be if the resulting transform ends up being the identity transform - which seems like an edge-case. With this in place, we can do additional improvements around the handling of fragment bounding boxes et.c. and change how the fragment is "parametrized". BUG=571415 Committed: https://crrev.com/6d462873c9d90978d22c52de38fb16c44a181ce1 Cr-Commit-Position: refs/heads/master@{#366567}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -27 lines) Patch
M third_party/WebKit/Source/core/layout/svg/SVGTextFragment.h View 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextQuery.cpp View 3 chunks +12 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp View 3 chunks +11 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp View 4 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
fs
5 years ago (2015-12-21 18:39:23 UTC) #2
pdr.
LGTM
5 years ago (2015-12-22 03:31:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545443002/1
5 years ago (2015-12-22 08:36:04 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-22 08:40:46 UTC) #6
commit-bot: I haz the power
5 years ago (2015-12-22 08:41:53 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6d462873c9d90978d22c52de38fb16c44a181ce1
Cr-Commit-Position: refs/heads/master@{#366567}

Powered by Google App Engine
This is Rietveld 408576698