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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: add cstdlib Created 3 years, 7 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
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 3239bc4c9b42018966f6f25aa5364043140a4169..408cf6095e6526c6088898f9980f11c49516ef72 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -85,6 +85,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/geometry/TransformState.h"
#include "platform/graphics/GraphicsLayer.h"
+#include "platform/graphics/TouchAction.h"
#include "platform/graphics/paint/PropertyTreeState.h"
#include "platform/instrumentation/tracing/TracedValue.h"
#include "platform/wtf/allocator/Partitions.h"
@@ -1817,13 +1818,13 @@ void LayoutObject::StyleWillChange(StyleDifference diff,
// handler will have already been added for its parent so ignore it.
// TODO: Remove this blocking event handler; crbug.com/318381
TouchAction old_touch_action =
- style_ ? style_->GetTouchAction() : kTouchActionAuto;
+ style_ ? style_->GetTouchAction() : TouchAction::kTouchActionAuto;
if (GetNode() && !GetNode()->IsTextNode() &&
- (old_touch_action == kTouchActionAuto) !=
- (new_style.GetTouchAction() == kTouchActionAuto)) {
+ (old_touch_action == TouchAction::kTouchActionAuto) !=
+ (new_style.GetTouchAction() == TouchAction::kTouchActionAuto)) {
EventHandlerRegistry& registry =
GetDocument().GetPage()->GetEventHandlerRegistry();
- if (new_style.GetTouchAction() != kTouchActionAuto)
+ if (new_style.GetTouchAction() != TouchAction::kTouchActionAuto)
registry.DidAddEventHandler(
*GetNode(), EventHandlerRegistry::kTouchStartOrMoveEventBlocking);
else
@@ -2645,7 +2646,7 @@ void LayoutObject::WillBeDestroyed() {
// m_style is null in cases of partial construction. Any handler we added
// previously may have already been removed by the Document independently.
if (GetNode() && !GetNode()->IsTextNode() && style_ &&
- style_->GetTouchAction() != kTouchActionAuto) {
+ style_->GetTouchAction() != TouchAction::kTouchActionAuto) {
EventHandlerRegistry& registry =
GetDocument().GetPage()->GetEventHandlerRegistry();
if (registry
« no previous file with comments | « third_party/WebKit/Source/core/input/TouchEventManager.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698