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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.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/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index 71a42e5b6bd23f8a49e4bd30ecc18550a24ab784..06650b0a17907ec5cace4471563a75f51188d6f6 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -96,7 +96,7 @@ void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName
void HTMLIFrameElement::parseAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& value)
{
if (name == nameAttr) {
- if (inShadowIncludingDocument() && document().isHTMLDocument() && !isInShadowTree()) {
+ if (isConnected() && document().isHTMLDocument() && !isInShadowTree()) {
HTMLDocument& document = toHTMLDocument(this->document());
document.removeExtraNamedItem(m_name);
document.addExtraNamedItem(value);
@@ -137,7 +137,7 @@ LayoutObject* HTMLIFrameElement::createLayoutObject(const ComputedStyle&)
Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode* insertionPoint)
{
InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(insertionPoint);
- if (insertionPoint->inShadowIncludingDocument() && document().isHTMLDocument() && !insertionPoint->isInShadowTree())
+ if (insertionPoint->isConnected() && document().isHTMLDocument() && !insertionPoint->isInShadowTree())
toHTMLDocument(document()).addExtraNamedItem(m_name);
logAddElementIfIsolatedWorldAndInDocument("iframe", srcAttr);
return result;
@@ -146,7 +146,7 @@ Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode
void HTMLIFrameElement::removedFrom(ContainerNode* insertionPoint)
{
HTMLFrameElementBase::removedFrom(insertionPoint);
- if (insertionPoint->inShadowIncludingDocument() && document().isHTMLDocument() && !insertionPoint->isInShadowTree())
+ if (insertionPoint->isConnected() && document().isHTMLDocument() && !insertionPoint->isInShadowTree())
toHTMLDocument(document()).removeExtraNamedItem(m_name);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFrameSetElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698