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

Issue 2827603006: Move ComputeTextRects before Range::BoundingBox() (Closed)

Created:
3 years, 8 months ago by tanvir
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ComputeTextRects before Range::BoundingBox() Currently textQuads and ComputeTextRects algorithm is mostly same. The difference of behaviour of these two functions can be handled efficiently by using templates. This patch is the first step to achieve above behaviour. This patch removes the TODO comment and forward declaration of computeTextRects. BUG=691198 Review-Url: https://codereview.chromium.org/2827603006 Cr-Commit-Position: refs/heads/master@{#466607} Committed: https://chromium.googlesource.com/chromium/src/+/0c2398f2a9fe6a2432bf86861da2e31480b2cc8d

Patch Set 1 #

Patch Set 2 : For Review #

Total comments: 4

Patch Set 3 : Review Comments Fixed #

Total comments: 8

Patch Set 4 : Review Changes done. #

Total comments: 7

Patch Set 5 : review comments addressed #

Total comments: 1

Patch Set 6 : Review comments Addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -12 lines) Patch
M third_party/WebKit/Source/core/dom/Range.cpp View 1 2 3 4 5 2 chunks +8 lines, -12 lines 0 comments Download

Messages

Total messages: 43 (25 generated)
tanvir
3 years, 8 months ago (2017-04-19 06:02:41 UTC) #10
Srirama
https://codereview.chromium.org/2827603006/diff/20001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/20001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1502 third_party/WebKit/Source/core/dom/Range.cpp:1502: LayoutText* layoutText = ToLayoutText(layoutObject); Align with new coding guidelines. ...
3 years, 8 months ago (2017-04-19 06:43:41 UTC) #11
tanvir
https://codereview.chromium.org/2827603006/diff/20001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/20001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1502 third_party/WebKit/Source/core/dom/Range.cpp:1502: LayoutText* layoutText = ToLayoutText(layoutObject); On 2017/04/19 06:43:41, Srirama wrote: ...
3 years, 8 months ago (2017-04-19 07:23:09 UTC) #12
Xiaocheng
https://codereview.chromium.org/2827603006/diff/40001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/40001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1485 third_party/WebKit/Source/core/dom/Range.cpp:1485: quads = ComputeTextQuads(EphemeralRange(this), use_selection_height); Could you verify if this ...
3 years, 8 months ago (2017-04-19 07:54:56 UTC) #13
tanvir
Review comments changes done. PTAL!!! https://codereview.chromium.org/2827603006/diff/40001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/40001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1485 third_party/WebKit/Source/core/dom/Range.cpp:1485: quads = ComputeTextQuads(EphemeralRange(this), use_selection_height); ...
3 years, 8 months ago (2017-04-19 14:06:00 UTC) #14
Xiaocheng
https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1495 third_party/WebKit/Source/core/dom/Range.cpp:1495: DCHECK(start_position.IsOffsetInAnchor() || start_container); s/||/&&/ https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1497 third_party/WebKit/Source/core/dom/Range.cpp:1497: DCHECK(end_position.IsOffsetInAnchor() || end_container); ...
3 years, 8 months ago (2017-04-20 00:21:52 UTC) #15
yosin_UTC9
https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1495 third_party/WebKit/Source/core/dom/Range.cpp:1495: DCHECK(start_position.IsOffsetInAnchor() || start_container); On 2017/04/20 at 00:21:52, Xiaocheng wrote: ...
3 years, 8 months ago (2017-04-20 01:21:02 UTC) #16
tanvir
https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/60001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1495 third_party/WebKit/Source/core/dom/Range.cpp:1495: DCHECK(start_position.IsOffsetInAnchor() || start_container); On 2017/04/20 01:21:01, yosin_UTC9 wrote: > ...
3 years, 8 months ago (2017-04-20 05:39:17 UTC) #17
Xiaocheng
lgtm. Thanks!
3 years, 8 months ago (2017-04-20 06:01:59 UTC) #20
yosin_UTC9
https://codereview.chromium.org/2827603006/diff/80001/third_party/WebKit/Source/core/dom/Range.cpp File third_party/WebKit/Source/core/dom/Range.cpp (right): https://codereview.chromium.org/2827603006/diff/80001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1488 third_party/WebKit/Source/core/dom/Range.cpp:1488: static void ComputeTextQuads(Vector<FloatQuad>* quads, Could you returnVector<FloatQuad> instead of ...
3 years, 8 months ago (2017-04-20 06:59:54 UTC) #21
tanvir
On 2017/04/20 06:59:54, yosin_UTC9 wrote: > https://codereview.chromium.org/2827603006/diff/80001/third_party/WebKit/Source/core/dom/Range.cpp > File third_party/WebKit/Source/core/dom/Range.cpp (right): > > https://codereview.chromium.org/2827603006/diff/80001/third_party/WebKit/Source/core/dom/Range.cpp#newcode1488 > ...
3 years, 8 months ago (2017-04-20 07:27:08 UTC) #22
yosin_UTC9
On 2017/04/20 at 07:27:08, tanvir.rizvi wrote: > On 2017/04/20 06:59:54, yosin_UTC9 wrote: > > https://codereview.chromium.org/2827603006/diff/80001/third_party/WebKit/Source/core/dom/Range.cpp ...
3 years, 8 months ago (2017-04-20 08:39:40 UTC) #25
tanvir
On 2017/04/20 08:39:40, yosin_UTC9 wrote: > On 2017/04/20 at 07:27:08, tanvir.rizvi wrote: > > On ...
3 years, 8 months ago (2017-04-20 14:27:42 UTC) #26
tanvir
PTAL!!!
3 years, 8 months ago (2017-04-24 05:34:15 UTC) #28
yosin_UTC9
lgtm +tkent@ for OWNERS review.
3 years, 8 months ago (2017-04-24 05:55:24 UTC) #30
tkent
lgtm CL description: > This patch moved removes the ToDO comment and forward declaration of ...
3 years, 8 months ago (2017-04-24 06:20:14 UTC) #31
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/2827603006/100001
3 years, 8 months ago (2017-04-24 09:19:17 UTC) #40
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 09:23:04 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/0c2398f2a9fe6a2432bf86861da2...

Powered by Google App Engine
This is Rietveld 408576698