blob: 79e9b485d94e831d2433f26aeb4bed2c3d12795f [file] [log] [blame]
// Copyright 2016 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 "third_party/blink/renderer/core/layout/hit_test_canvas_result.h"
namespace blink {
HitTestCanvasResult::HitTestCanvasResult(String id, Member<Element> control)
: id_(id), control_(control) {}
String HitTestCanvasResult::GetId() const {
return id_;
}
Element* HitTestCanvasResult::GetControl() const {
return control_.Get();
}
void HitTestCanvasResult::Trace(Visitor* visitor) {
visitor->Trace(control_);
}
} // namespace blink