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

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

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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/HTMLButtonElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp b/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp
index 5c1ac88ad44e74fe4a22e6b386e65454fc20d055..976f1de00750d62d4d73d263f11b87561102e8e4 100644
--- a/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLButtonElement.cpp
@@ -101,7 +101,7 @@ void HTMLButtonElement::parseAttribute(const QualifiedName& name, const AtomicSt
else
m_type = SUBMIT;
setNeedsWillValidateCheck();
- if (formOwner() && inShadowIncludingDocument())
+ if (formOwner() && isConnected())
formOwner()->invalidateDefaultButtonStyle();
} else {
if (name == formactionAttr)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLBaseElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698