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

Issue 2599483002: Extract helper function. (Closed)

Created:
4 years ago by Andrey Kraynov
Modified:
3 years, 12 months ago
Reviewers:
chrishtr, Yuta Kitamura
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, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract helper function to calculate offsets for painting a DocumentMarker. Also it is possible to pass DocumentMarker objects to painting functions by const ref instead of pointer. No behavior changes. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/6275485d7a75bfaae1a66852e80113ffd468ee2f Cr-Commit-Position: refs/heads/master@{#440662}

Patch Set 1 #

Total comments: 5

Messages

Total messages: 18 (9 generated)
Andrey Kraynov
Hi! I tried to simplify some lines of code, could you take a look please? ...
4 years ago (2016-12-21 17:43:18 UTC) #4
Andrey Kraynov
yutak@, maybe you will have time to look at this? Thanks in advance!
3 years, 12 months ago (2016-12-23 20:31:09 UTC) #6
chrishtr
https://codereview.chromium.org/2599483002/diff/1/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2599483002/diff/1/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp#newcode30 third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:30: const unsigned startOffset = marker.startOffset() > textBox.start() Why not ...
3 years, 12 months ago (2016-12-23 20:57:19 UTC) #8
Andrey Kraynov
https://codereview.chromium.org/2599483002/diff/1/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2599483002/diff/1/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp#newcode30 third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:30: const unsigned startOffset = marker.startOffset() > textBox.start() On 2016/12/23 ...
3 years, 12 months ago (2016-12-23 22:27:47 UTC) #9
Andrey Kraynov
https://codereview.chromium.org/2599483002/diff/1/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2599483002/diff/1/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp#newcode30 third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp:30: const unsigned startOffset = marker.startOffset() > textBox.start() On 2016/12/23 ...
3 years, 12 months ago (2016-12-23 22:31:00 UTC) #10
chrishtr
lgtm
3 years, 12 months ago (2016-12-23 23:38:05 UTC) #12
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/2599483002/1
3 years, 12 months ago (2016-12-23 23:38:23 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 12 months ago (2016-12-24 01:02:50 UTC) #16
commit-bot: I haz the power
3 years, 12 months ago (2016-12-24 01:07:34 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6275485d7a75bfaae1a66852e80113ffd468ee2f
Cr-Commit-Position: refs/heads/master@{#440662}

Powered by Google App Engine
This is Rietveld 408576698