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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.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 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 return new LayoutEmbeddedObject(this); 264 return new LayoutEmbeddedObject(this);
265 } 265 }
266 266
267 void HTMLPlugInElement::finishParsingChildren() 267 void HTMLPlugInElement::finishParsingChildren()
268 { 268 {
269 HTMLFrameOwnerElement::finishParsingChildren(); 269 HTMLFrameOwnerElement::finishParsingChildren();
270 if (useFallbackContent()) 270 if (useFallbackContent())
271 return; 271 return;
272 272
273 setNeedsWidgetUpdate(true); 273 setNeedsWidgetUpdate(true);
274 if (inShadowIncludingDocument()) 274 if (isConnected())
275 lazyReattachIfNeeded(); 275 lazyReattachIfNeeded();
276 } 276 }
277 277
278 void HTMLPlugInElement::resetInstance() 278 void HTMLPlugInElement::resetInstance()
279 { 279 {
280 m_pluginWrapper.clear(); 280 m_pluginWrapper.clear();
281 } 281 }
282 282
283 SharedPersistent<v8::Object>* HTMLPlugInElement::pluginWrapper() 283 SharedPersistent<v8::Object>* HTMLPlugInElement::pluginWrapper()
284 { 284 {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 590
591 void HTMLPlugInElement::lazyReattachIfNeeded() 591 void HTMLPlugInElement::lazyReattachIfNeeded()
592 { 592 {
593 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma geType()) { 593 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma geType()) {
594 lazyReattachIfAttached(); 594 lazyReattachIfAttached();
595 setPersistedPluginWidget(nullptr); 595 setPersistedPluginWidget(nullptr);
596 } 596 }
597 } 597 }
598 598
599 } // namespace blink 599 } // 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