| Index: Source/core/layout/LayoutObject.cpp
|
| diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
|
| index aa2c60d896086b1a2db81489dcb91dd4117d9298..9341dc0ecbf6b28b5e1023395fef6f5809fbee3d 100644
|
| --- a/Source/core/layout/LayoutObject.cpp
|
| +++ b/Source/core/layout/LayoutObject.cpp
|
| @@ -1922,9 +1922,9 @@ void LayoutObject::styleWillChange(StyleDifference diff, const ComputedStyle& ne
|
| if (node() && !node()->isTextNode() && (oldTouchAction == TouchActionAuto) != (newStyle.touchAction() == TouchActionAuto)) {
|
| EventHandlerRegistry& registry = document().frameHost()->eventHandlerRegistry();
|
| if (newStyle.touchAction() != TouchActionAuto)
|
| - registry.didAddEventHandler(*node(), EventHandlerRegistry::TouchEvent);
|
| + registry.didAddEventHandler(*node(), EventTypeNames::touchstart);
|
| else
|
| - registry.didRemoveEventHandler(*node(), EventHandlerRegistry::TouchEvent);
|
| + registry.didRemoveEventHandler(*node(), EventTypeNames::touchstart);
|
| }
|
| }
|
|
|
| @@ -2450,7 +2450,7 @@ void LayoutObject::willBeDestroyed()
|
| if (node() && !node()->isTextNode() && m_style && m_style->touchAction() != TouchActionAuto) {
|
| EventHandlerRegistry& registry = document().frameHost()->eventHandlerRegistry();
|
| if (registry.eventHandlerTargets(EventHandlerRegistry::TouchEvent)->contains(node()))
|
| - registry.didRemoveEventHandler(*node(), EventHandlerRegistry::TouchEvent);
|
| + registry.didRemoveEventHandler(*node(), EventTypeNames::touchstart);
|
| }
|
|
|
| setAncestorLineBoxDirty(false);
|
|
|