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 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Created 3 years, 9 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 bool HTMLPlugInElement::hasCustomFocusLogic() const { 419 bool HTMLPlugInElement::hasCustomFocusLogic() const {
420 return !useFallbackContent(); 420 return !useFallbackContent();
421 } 421 }
422 422
423 bool HTMLPlugInElement::isPluginElement() const { 423 bool HTMLPlugInElement::isPluginElement() const {
424 return true; 424 return true;
425 } 425 }
426 426
427 bool HTMLPlugInElement::isPlaceholder() {
428 if (pluginWidget() && (pluginWidget()->isPluginContainer()) &&
429 ((pluginWidget()->isPlaceholder())))
430 return true;
431 return false;
432 }
433
427 void HTMLPlugInElement::disconnectContentFrame() { 434 void HTMLPlugInElement::disconnectContentFrame() {
428 HTMLFrameOwnerElement::disconnectContentFrame(); 435 HTMLFrameOwnerElement::disconnectContentFrame();
429 setPersistedPluginWidget(nullptr); 436 setPersistedPluginWidget(nullptr);
430 } 437 }
431 438
432 bool HTMLPlugInElement::layoutObjectIsFocusable() const { 439 bool HTMLPlugInElement::layoutObjectIsFocusable() const {
433 if (HTMLFrameOwnerElement::supportsFocus() && 440 if (HTMLFrameOwnerElement::supportsFocus() &&
434 HTMLFrameOwnerElement::layoutObjectIsFocusable()) 441 HTMLFrameOwnerElement::layoutObjectIsFocusable())
435 return true; 442 return true;
436 443
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 655
649 void HTMLPlugInElement::lazyReattachIfNeeded() { 656 void HTMLPlugInElement::lazyReattachIfNeeded() {
650 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && 657 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() &&
651 !isImageType()) { 658 !isImageType()) {
652 lazyReattachIfAttached(); 659 lazyReattachIfAttached();
653 setPersistedPluginWidget(nullptr); 660 setPersistedPluginWidget(nullptr);
654 } 661 }
655 } 662 }
656 663
657 } // namespace blink 664 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698