| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |