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

Unified Diff: third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp

Issue 2005093002: Remove non-standard 'results' attribute of INPUT element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/html/shadow/TextControlInnerElements.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp b/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
index 08d58d563e2009ede3c24b9b0df11278baf1bbcc..c8bb783cd82ea27d7e7e92baa69ebb2e0775e7f5 100644
--- a/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
@@ -151,54 +151,6 @@ PassRefPtr<ComputedStyle> TextControlInnerEditorElement::customStyleForLayoutObj
// ----------------------------
-inline SearchFieldDecorationElement::SearchFieldDecorationElement(Document& document)
- : HTMLDivElement(document)
-{
-}
-
-SearchFieldDecorationElement* SearchFieldDecorationElement::create(Document& document)
-{
- SearchFieldDecorationElement* element = new SearchFieldDecorationElement(document);
- element->setAttribute(idAttr, ShadowElementNames::searchDecoration());
- return element;
-}
-
-const AtomicString& SearchFieldDecorationElement::shadowPseudoId() const
-{
- DEFINE_STATIC_LOCAL(AtomicString, resultsDecorationId, ("-webkit-search-results-decoration"));
- DEFINE_STATIC_LOCAL(AtomicString, decorationId, ("-webkit-search-decoration"));
- Element* host = shadowHost();
- if (!host)
- return resultsDecorationId;
- if (isHTMLInputElement(*host)) {
- if (toHTMLInputElement(host)->maxResults() < 0)
- return decorationId;
- return resultsDecorationId;
- }
- return resultsDecorationId;
-}
-
-void SearchFieldDecorationElement::defaultEventHandler(Event* event)
-{
- // On mousedown, focus the search field
- HTMLInputElement* input = toHTMLInputElement(shadowHost());
- if (input && event->type() == EventTypeNames::mousedown && event->isMouseEvent() && toMouseEvent(event)->button() == LeftButton) {
- input->focus();
- input->select(NotDispatchSelectEvent);
- event->setDefaultHandled();
- }
-
- if (!event->defaultHandled())
- HTMLDivElement::defaultEventHandler(event);
-}
-
-bool SearchFieldDecorationElement::willRespondToMouseClickEvents()
-{
- return true;
-}
-
-// ----------------------------
-
inline SearchFieldCancelButtonElement::SearchFieldCancelButtonElement(Document& document)
: HTMLDivElement(document)
, m_capturing(false)

Powered by Google App Engine
This is Rietveld 408576698