blob: dbba225fd9b4e67c550514956c5831e544cf2e55 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/input/TouchActionUtil.h"
#include "core/dom/Node.h"
#include "core/dom/NodeComputedStyle.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/layout/LayoutBox.h"
#include "core/layout/LayoutObject.h"
namespace blink {
namespace TouchActionUtil {
TouchAction ComputeEffectiveTouchAction(const Node& node) {
if (node.GetComputedStyle())
return node.GetComputedStyle()->GetEffectiveTouchAction();
return TouchAction::kTouchActionAuto;
}
} // namespace TouchActionUtil
} // namespace blink