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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 1901403002: Remove UserAgent ShadowRoot + Author ShadowRoot code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Element::createShadowRoot, update some tests Created 4 years, 8 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/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index 93524f6f22a7a8a18d52d5aa1889c4d096553b0b..750e96192e6295ae9bb99c8ba72ea1ae06392109 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -159,13 +159,6 @@ void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot&)
m_inputTypeView->createShadowSubtree();
}
-void HTMLInputElement::willAddFirstAuthorShadowRoot()
-{
- m_inputTypeView->destroyShadowSubtree();
- m_inputTypeView = InputTypeView::create(*this);
- lazyReattachIfAttached();
-}
-
HTMLInputElement::~HTMLInputElement()
{
}
@@ -472,10 +465,7 @@ void HTMLInputElement::updateType()
lazyReattachIfAttached();
m_inputType = newType;
- if (openShadowRoot())
- m_inputTypeView = InputTypeView::create(*this);
- else
- m_inputTypeView = m_inputType->createView();
+ m_inputTypeView = m_inputType->createView();
m_inputTypeView->createShadowSubtree();
updateTouchEventHandlerRegistry();
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.h ('k') | third_party/WebKit/Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698