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

Issue 2904433002: Use only LayoutText::AbsoluteQuadsForRange() in VisibleUnit::ComputeTextBounds() (Closed)

Created:
3 years, 7 months ago by yoichio
Modified:
3 years, 7 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use only LayoutText::AbsoluteQuadsForRange() in VisibleUnit::ComputeTextBounds() There are LayoutText::AbsoluteRectsForRange() and AbsoluteQuadsForRange(). The former collects IntRect and the later collects FloatQuad through very similar algorithm. The only difference between two is the former converts from FloatQuad, which is just the later collects, to IntRect with EnclosingBoundingBox(). Since we collects rects and unify all of them, it is OK to refactor from "UnifyIntRect(float_quads.Map(f => f.EnclosingBoundingBox()))" to "UnifyFloatRect(float_quads).EnclosingBoundingBox())". BUG= Review-Url: https://codereview.chromium.org/2904433002 Cr-Commit-Position: refs/heads/master@{#473840} Committed: https://chromium.googlesource.com/chromium/src/+/e9e8ed890a60d669fabdcb3ef3bbafe5eeeb74f3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -27 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 3 chunks +11 lines, -27 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
yoichio
3 years, 7 months ago (2017-05-23 07:50:04 UTC) #8
yosin_UTC9
lgtm Cool!
3 years, 7 months ago (2017-05-23 08:35:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904433002/1
3 years, 7 months ago (2017-05-23 08:35:45 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 08:40:43 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e9e8ed890a60d669fabdcb3ef3bb...

Powered by Google App Engine
This is Rietveld 408576698