Chromium Code Reviews| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 m_persistedPluginWidget = widget; | 97 m_persistedPluginWidget = widget; |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool HTMLPlugInElement::canProcessDrag() const | 100 bool HTMLPlugInElement::canProcessDrag() const |
| 101 { | 101 { |
| 102 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug inWidget())->canProcessDrag(); | 102 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug inWidget())->canProcessDrag(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool HTMLPlugInElement::canStartSelection() const | |
| 106 { | |
| 107 if (!useFallbackContent()) | |
|
yosin_UTC9
2016/06/22 01:23:18
How about below?
return useFallbackContent() && N
aelias_OOO_until_Jul13
2016/06/22 01:33:03
Done.
| |
| 108 return false; | |
| 109 | |
| 110 return Node::canStartSelection(); | |
| 111 } | |
| 112 | |
| 105 bool HTMLPlugInElement::willRespondToMouseClickEvents() | 113 bool HTMLPlugInElement::willRespondToMouseClickEvents() |
| 106 { | 114 { |
| 107 if (isDisabledFormControl()) | 115 if (isDisabledFormControl()) |
| 108 return false; | 116 return false; |
| 109 LayoutObject* r = layoutObject(); | 117 LayoutObject* r = layoutObject(); |
| 110 return r && (r->isEmbeddedObject() || r->isLayoutPart()); | 118 return r && (r->isEmbeddedObject() || r->isLayoutPart()); |
| 111 } | 119 } |
| 112 | 120 |
| 113 void HTMLPlugInElement::removeAllEventListeners() | 121 void HTMLPlugInElement::removeAllEventListeners() |
| 114 { | 122 { |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 598 | 606 |
| 599 void HTMLPlugInElement::lazyReattachIfNeeded() | 607 void HTMLPlugInElement::lazyReattachIfNeeded() |
| 600 { | 608 { |
| 601 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma geType()) { | 609 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma geType()) { |
| 602 lazyReattachIfAttached(); | 610 lazyReattachIfAttached(); |
| 603 setPersistedPluginWidget(nullptr); | 611 setPersistedPluginWidget(nullptr); |
| 604 } | 612 } |
| 605 } | 613 } |
| 606 | 614 |
| 607 } // namespace blink | 615 } // namespace blink |
| OLD | NEW |