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

Issue 2557563003: Make calculation of document marker's rendered rect on demand (Closed)

Created:
4 years ago by Xiaocheng
Modified:
4 years ago
Reviewers:
tkent
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make calculation of document marker's rendered rect on demand Currently, when adding a document marker, we calculate its rendered rectangle synchronously by calling updateMarkerRenderedRect in DocumentMarkerController::addMarker. This is not needed, since when we retrieve the rendered rectangles (only possible via DMC::renderedRectsForMarkers), updateMarkerRenderedRectIfNeed is also called, calculating the marker's rendered rectangle if we haven't done it before. Hence, this patch removes the updateMarkerRenderedRect call from DMC::addMarker as a performance improvement. BUG=668408 Committed: https://crrev.com/f6763007a1508ccbff5f635202c950367769855e Cr-Commit-Position: refs/heads/master@{#436553}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
Xiaocheng
PTAL. In fact, the only client of marker's rendered rectangles is scrollbar, who uses them ...
4 years ago (2016-12-06 08:20:30 UTC) #5
tkent
lgtm
4 years ago (2016-12-06 09:01:32 UTC) #6
Xiaocheng
Thanks for the review!
4 years ago (2016-12-06 09:04:21 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/2557563003/1
4 years ago (2016-12-06 09:04:34 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-06 09:30:42 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-06 09:32:17 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f6763007a1508ccbff5f635202c950367769855e
Cr-Commit-Position: refs/heads/master@{#436553}

Powered by Google App Engine
This is Rietveld 408576698