DescriptionClear 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 #
Messages
Total messages: 10 (0 generated)
|