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

Issue 1049673002: Simplify range mapping computation in SVGTextQuery/SVGInlineTextBox (Closed)

Created:
5 years, 8 months ago by fs
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, Dominik Röttsches, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Simplify range mapping computation in SVGTextQuery/SVGInlineTextBox Reduce SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates to a simple offset/base adjustment and an intersection (which is what it did - just in an unnecessarily verbose way.) In SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates, drop the intersection code, and leave that to the SVGInlineTextBox method. Move the call to modifyStartEndPositionsRespectingLigatures() after the intersection, because we don't want to do any adjustments on an empty range. This is ok because modifyStartEndPositionsRespectingLigatures() should never expand the range outside of the fragment it operating on. Moving the call means it needs to be adjusted to work on offsets within the fragment, so do that. BUG=471205, 470326 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193017

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -51 lines) Patch
M Source/core/layout/svg/SVGTextQuery.cpp View 1 chunk +17 lines, -31 lines 0 comments Download
M Source/core/layout/svg/line/SVGInlineTextBox.cpp View 1 chunk +8 lines, -20 lines 2 comments Download

Messages

Total messages: 9 (2 generated)
fs
5 years, 8 months ago (2015-03-31 13:06:06 UTC) #2
fs
This diff looks more intimidating that it is - I swear! =)
5 years, 8 months ago (2015-04-01 08:57:09 UTC) #3
Erik Dahlström (inactive)
https://codereview.chromium.org/1049673002/diff/1/Source/core/layout/svg/line/SVGInlineTextBox.cpp File Source/core/layout/svg/line/SVGInlineTextBox.cpp (right): https://codereview.chromium.org/1049673002/diff/1/Source/core/layout/svg/line/SVGInlineTextBox.cpp#newcode207 Source/core/layout/svg/line/SVGInlineTextBox.cpp:207: // Compute positions relative to the fragment. This used ...
5 years, 8 months ago (2015-04-01 14:04:21 UTC) #4
fs
https://codereview.chromium.org/1049673002/diff/1/Source/core/layout/svg/line/SVGInlineTextBox.cpp File Source/core/layout/svg/line/SVGInlineTextBox.cpp (right): https://codereview.chromium.org/1049673002/diff/1/Source/core/layout/svg/line/SVGInlineTextBox.cpp#newcode207 Source/core/layout/svg/line/SVGInlineTextBox.cpp:207: // Compute positions relative to the fragment. On 2015/04/01 ...
5 years, 8 months ago (2015-04-01 14:16:25 UTC) #5
Erik Dahlström (inactive)
On 2015/04/01 14:16:25, fs wrote: > https://codereview.chromium.org/1049673002/diff/1/Source/core/layout/svg/line/SVGInlineTextBox.cpp > File Source/core/layout/svg/line/SVGInlineTextBox.cpp (right): > > https://codereview.chromium.org/1049673002/diff/1/Source/core/layout/svg/line/SVGInlineTextBox.cpp#newcode207 > ...
5 years, 8 months ago (2015-04-01 14:53:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049673002/1
5 years, 8 months ago (2015-04-02 08:18:42 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-02 09:39:49 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193017

Powered by Google App Engine
This is Rietveld 408576698