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

Issue 14582012: Clear highlight when the highlighted node gets removed from the document (Closed)

Created:
7 years, 7 months ago by trchen
Modified:
7 years, 7 months ago
Reviewers:
jamesr, wjmaclean
CC:
blink-reviews, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Clear highlight when the highlighted node gets removed from the document Some web pages use a mask element to intercept tap gesture and then hide the element immediately. The orphaned highlight can be very annoying. For example, pages that show a popup often use a full screen transparent element to intercept events, and will hide the popup if the user attempt to tap on the main document. If we don't remove highlight from the hidden element, the whole screen will be covered by a highlight. This patch clears highlight from a layer when the tap node is no longer valid. TEST=webkit_unit_tests:LinkHighlightTest.resetDuringNodeRemoval BUG=232926 R=jamesr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149814

Patch Set 1 #

Patch Set 2 : use layer invalidation path as jamesr suggested #

Patch Set 3 : remove one useless #include #

Patch Set 4 : add releaseResources() #

Total comments: 1

Patch Set 5 : currentGraphicsLayerForTesting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -0 lines) Patch
M Source/WebKit/chromium/src/LinkHighlight.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/LinkHighlight.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/tests/LinkHighlightTest.cpp View 1 2 3 4 3 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
trchen
Hello James, Do you have time to take a look at this patch please? This ...
7 years, 7 months ago (2013-05-03 00:04:55 UTC) #1
jamesr
Woah, this seems dangerous. The link highlight stuff really shouldn't have to be tied into ...
7 years, 7 months ago (2013-05-03 00:12:11 UTC) #2
trchen
Good point. Here comes with a much simpler version. PTAL! :) On 2013/05/03 00:12:11, jamesr ...
7 years, 7 months ago (2013-05-03 02:16:42 UTC) #3
wjmaclean
On 2013/05/03 00:12:11, jamesr wrote: > Woah, this seems dangerous. The link highlight stuff really ...
7 years, 7 months ago (2013-05-03 12:48:46 UTC) #4
trchen
On 2013/05/03 12:48:46, wjmaclean wrote: > On 2013/05/03 00:12:11, jamesr wrote: > > Woah, this ...
7 years, 7 months ago (2013-05-03 21:10:27 UTC) #5
trchen
Hello (both) James, does the patch look good to you? Thanks! On 2013/05/03 00:12:11, jamesr ...
7 years, 7 months ago (2013-05-06 21:04:48 UTC) #6
jamesr
lgtm for this James. Adding the other James to the reviewer list https://codereview.chromium.org/14582012/diff/9001/Source/WebKit/chromium/src/LinkHighlight.h File Source/WebKit/chromium/src/LinkHighlight.h ...
7 years, 7 months ago (2013-05-06 21:06:51 UTC) #7
wjmaclean
lgtm
7 years, 7 months ago (2013-05-06 21:43:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/14582012/16002
7 years, 7 months ago (2013-05-06 21:58:29 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-06 22:35:30 UTC) #10
Message was sent while issue was closed.
Change committed as 149814

Powered by Google App Engine
This is Rietveld 408576698