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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 return new LayoutEmbeddedObject(this); 262 return new LayoutEmbeddedObject(this);
263 } 263 }
264 264
265 void HTMLPlugInElement::finishParsingChildren() 265 void HTMLPlugInElement::finishParsingChildren()
266 { 266 {
267 HTMLFrameOwnerElement::finishParsingChildren(); 267 HTMLFrameOwnerElement::finishParsingChildren();
268 if (useFallbackContent()) 268 if (useFallbackContent())
269 return; 269 return;
270 270
271 setNeedsWidgetUpdate(true); 271 setNeedsWidgetUpdate(true);
272 if (inDocument()) 272 if (inShadowIncludingDocument())
273 lazyReattachIfNeeded(); 273 lazyReattachIfNeeded();
274 } 274 }
275 275
276 void HTMLPlugInElement::resetInstance() 276 void HTMLPlugInElement::resetInstance()
277 { 277 {
278 m_pluginWrapper.clear(); 278 m_pluginWrapper.clear();
279 } 279 }
280 280
281 SharedPersistent<v8::Object>* HTMLPlugInElement::pluginWrapper() 281 SharedPersistent<v8::Object>* HTMLPlugInElement::pluginWrapper()
282 { 282 {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 606
607 void HTMLPlugInElement::lazyReattachIfNeeded() 607 void HTMLPlugInElement::lazyReattachIfNeeded()
608 { 608 {
609 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma geType()) { 609 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma geType()) {
610 lazyReattachIfAttached(); 610 lazyReattachIfAttached();
611 setPersistedPluginWidget(nullptr); 611 setPersistedPluginWidget(nullptr);
612 } 612 }
613 } 613 }
614 614
615 } // namespace blink 615 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLObjectElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698