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

Unified Diff: Source/core/input/EventHandler.cpp

Issue 1317533002: Sibling invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Invalidate descendants only Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/input/EventHandler.cpp
diff --git a/Source/core/input/EventHandler.cpp b/Source/core/input/EventHandler.cpp
index 3a33b3d9a6b371e4e96a54c24c9daf0328626ad9..f80746f09a23e711b7d8464051909fd783bb00e9 100644
--- a/Source/core/input/EventHandler.cpp
+++ b/Source/core/input/EventHandler.cpp
@@ -2121,8 +2121,13 @@ bool EventHandler::handleGestureTap(const GestureEventWithHitTestResults& target
bool swallowed = swallowMouseDownEvent | swallowMouseUpEvent | swallowClickEvent;
if (!swallowed && tappedNode && m_frame->page()) {
- bool domTreeChanged = preDispatchDomTreeVersion != m_frame->document()->domTreeVersion();
- bool styleChanged = preDispatchStyleVersion != m_frame->document()->styleVersion();
+ Document* document = m_frame->document();
+ bool domTreeChanged = preDispatchDomTreeVersion != document->domTreeVersion();
+ bool styleChanged = preDispatchStyleVersion != document->styleVersion();
+ if (!styleChanged) {
Timothy Loh 2015/09/10 06:09:40 Why did this have to change?
+ if (Element* documentElement = document->documentElement())
+ styleChanged = documentElement->childNeedsStyleInvalidation();
+ }
IntPoint tappedPositionInViewport = m_frame->page()->frameHost().visualViewport().rootFrameToViewport(tappedPosition);
m_frame->chromeClient().showUnhandledTapUIIfNeeded(tappedPositionInViewport, tappedNode.get(), domTreeChanged || styleChanged);
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.cpp ('k') | Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698