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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index e57dd593ec765a69904b08ec6f238d4b10ee2a15..572d4502d462bf4a9e5e35ff5930940f731e07f3 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -319,7 +319,7 @@ void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint)
void HTMLObjectElement::childrenChanged(const ChildrenChange& change)
{
- if (inDocument() && !useFallbackContent()) {
+ if (inShadowIncludingDocument() && !useFallbackContent()) {
setNeedsWidgetUpdate(true);
lazyReattachIfNeeded();
}
@@ -364,7 +364,7 @@ void HTMLObjectElement::renderFallbackContent()
if (useFallbackContent())
return;
- if (!inDocument())
+ if (!inShadowIncludingDocument())
return;
// Before we give up and use fallback content, check to see if this is a MIME type issue.
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMetaElement-in.cpp ('k') | third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698