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

Issue 2518363003: Refactor InlineBox::calculateBoundaries() (Closed)

Created:
4 years, 1 month ago by Xianzhu
Modified:
4 years ago
Reviewers:
pdr.
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, krit, eae+blinkwatch, f(malita), fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, kozyatinskiy+blink_chromium.org, leviw+renderwatch, lushnikov+blink_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor InlineBox::calculateBoundaries() Previously calculateBoundaries() were used for two different purposes: - For InlineTextBox, this is to retrieve the frame rect (LayoutRect(x(), y(), width(), height()) which is a result of layout. - For SVGInlineFlowBox and SVGInlineTextBox this is a task during layout to calculate the boundaries based on the positions of text fragments. Remove InlineBox::calculateBoundaries() because we don't need it in this abstraction level. Rename InlineTextBox::calculateBoundaries() to frameRect(). Keep SVGInlineTextBox::calculateBoundaries() which is no longer virtual. BUG=666416 Committed: https://crrev.com/5d66facc4263f517ee3cd4d733120bc9e5380cd1 Cr-Commit-Position: refs/heads/master@{#434907}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Messages

Total messages: 17 (11 generated)
Xianzhu
4 years, 1 month ago (2016-11-23 00:19:00 UTC) #4
pdr.
Very nice cleanup. LGTM https://codereview.chromium.org/2518363003/diff/1/third_party/WebKit/Source/core/layout/line/InlineTextBox.h File third_party/WebKit/Source/core/layout/line/InlineTextBox.h (right): https://codereview.chromium.org/2518363003/diff/1/third_party/WebKit/Source/core/layout/line/InlineTextBox.h#newcode130 third_party/WebKit/Source/core/layout/line/InlineTextBox.h:130: LayoutRect frameRect() const { This ...
4 years, 1 month ago (2016-11-23 03:38:13 UTC) #7
Xianzhu
I found I have to make this CL the last one in the series because ...
4 years, 1 month ago (2016-11-23 04:06:37 UTC) #8
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/2518363003/20001
4 years ago (2016-11-29 04:34:38 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 05:57:27 UTC) #15
commit-bot: I haz the power
4 years ago (2016-11-29 05:59:06 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5d66facc4263f517ee3cd4d733120bc9e5380cd1
Cr-Commit-Position: refs/heads/master@{#434907}

Powered by Google App Engine
This is Rietveld 408576698