Commit fd2fcd90 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Removed unused capturing_ member and related code.

Change-Id: I36f9dc912bd90e8ea4c5726089b70d76dba0d6e9
Reviewed-on: https://chromium-review.googlesource.com/c/1311927
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604822}
parent f7f9fcd9
...@@ -30,15 +30,10 @@ ...@@ -30,15 +30,10 @@
#include "third_party/blink/renderer/core/css/style_change_reason.h" #include "third_party/blink/renderer/core/css/style_change_reason.h"
#include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h" #include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/dom/user_gesture_indicator.h"
#include "third_party/blink/renderer/core/events/mouse_event.h" #include "third_party/blink/renderer/core/events/mouse_event.h"
#include "third_party/blink/renderer/core/events/text_event.h"
#include "third_party/blink/renderer/core/events/text_event_input_type.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/forms/html_input_element.h" #include "third_party/blink/renderer/core/html/forms/html_input_element.h"
#include "third_party/blink/renderer/core/html/shadow/shadow_element_names.h" #include "third_party/blink/renderer/core/html/shadow/shadow_element_names.h"
#include "third_party/blink/renderer/core/html_names.h" #include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/input/event_handler.h"
#include "third_party/blink/renderer/core/layout/layout_text_control_single_line.h" #include "third_party/blink/renderer/core/layout/layout_text_control_single_line.h"
namespace blink { namespace blink {
...@@ -217,7 +212,7 @@ TextControlInnerEditorElement::CreateInnerEditorStyle() const { ...@@ -217,7 +212,7 @@ TextControlInnerEditorElement::CreateInnerEditorStyle() const {
inline SearchFieldCancelButtonElement::SearchFieldCancelButtonElement( inline SearchFieldCancelButtonElement::SearchFieldCancelButtonElement(
Document& document) Document& document)
: HTMLDivElement(document), capturing_(false) {} : HTMLDivElement(document) {}
SearchFieldCancelButtonElement* SearchFieldCancelButtonElement::Create( SearchFieldCancelButtonElement* SearchFieldCancelButtonElement::Create(
Document& document) { Document& document) {
...@@ -228,15 +223,6 @@ SearchFieldCancelButtonElement* SearchFieldCancelButtonElement::Create( ...@@ -228,15 +223,6 @@ SearchFieldCancelButtonElement* SearchFieldCancelButtonElement::Create(
return element; return element;
} }
void SearchFieldCancelButtonElement::DetachLayoutTree(
const AttachContext& context) {
if (capturing_) {
if (LocalFrame* frame = GetDocument().GetFrame())
frame->GetEventHandler().SetCapturingMouseEventsNode(nullptr);
}
HTMLDivElement::DetachLayoutTree(context);
}
void SearchFieldCancelButtonElement::DefaultEventHandler(Event& event) { void SearchFieldCancelButtonElement::DefaultEventHandler(Event& event) {
// If the element is visible, on mouseup, clear the value, and set selection // If the element is visible, on mouseup, clear the value, and set selection
HTMLInputElement* input(ToHTMLInputElement(OwnerShadowHost())); HTMLInputElement* input(ToHTMLInputElement(OwnerShadowHost()));
......
...@@ -79,10 +79,7 @@ class SearchFieldCancelButtonElement final : public HTMLDivElement { ...@@ -79,10 +79,7 @@ class SearchFieldCancelButtonElement final : public HTMLDivElement {
private: private:
explicit SearchFieldCancelButtonElement(Document&); explicit SearchFieldCancelButtonElement(Document&);
void DetachLayoutTree(const AttachContext& = AttachContext()) override;
bool SupportsFocus() const override { return false; } bool SupportsFocus() const override { return false; }
bool capturing_;
}; };
} // namespace blink } // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment