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

Issue 2956453002: Clean up DocumentMarkerController::MarkersFor() (Closed)

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

Description

Clean up DocumentMarkerController::MarkersFor() I'm cleaning up two things here: - Adding a check to PossiblyHasMarkers() (probably doesn't save us very much time, but we can at least avoid a hashmap lookup in the "no markers" case) - Fixing the loop to just loop over the passed-in set of MarkerTypes vs. looping over all types and skipping over some of them BUG=707867 Review-Url: https://codereview.chromium.org/2956453002 Cr-Commit-Position: refs/heads/master@{#485038} Committed: https://chromium.googlesource.com/chromium/src/+/f37e7fd6eb873016a023acc58a121161128aeabd

Patch Set 1 #

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

Messages

Total messages: 13 (8 generated)
rlanday
3 years, 6 months ago (2017-06-22 18:11:38 UTC) #3
Xiaocheng
lgtm Good catch!
3 years, 6 months ago (2017-06-22 18:13:09 UTC) #5
yosin_UTC9
lgtm Good catch!
3 years, 6 months ago (2017-06-23 06:15:59 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/2956453002/1
3 years, 5 months ago (2017-07-07 18:50:05 UTC) #10
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 20:52:51 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f37e7fd6eb873016a023acc58a12...

Powered by Google App Engine
This is Rietveld 408576698