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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 if (event->defaultHandled()) | 357 if (event->defaultHandled()) |
358 return; | 358 return; |
359 HTMLFrameOwnerElement::defaultEventHandler(event); | 359 HTMLFrameOwnerElement::defaultEventHandler(event); |
360 } | 360 } |
361 | 361 |
362 LayoutPart* HTMLPlugInElement::layoutPartForJSBindings() const | 362 LayoutPart* HTMLPlugInElement::layoutPartForJSBindings() const |
363 { | 363 { |
364 // Needs to load the plugin immediatedly because this function is called | 364 // Needs to load the plugin immediatedly because this function is called |
365 // when JavaScript code accesses the plugin. | 365 // when JavaScript code accesses the plugin. |
366 // FIXME: Check if dispatching events here is safe. | 366 // FIXME: Check if dispatching events here is safe. |
367 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks
Synchronously); | 367 document().updateStyleAndLayoutIgnorePendingStylesheets(Document::RunPostLay
outTasksSynchronously); |
368 return existingLayoutPart(); | 368 return existingLayoutPart(); |
369 } | 369 } |
370 | 370 |
371 bool HTMLPlugInElement::isKeyboardFocusable() const | 371 bool HTMLPlugInElement::isKeyboardFocusable() const |
372 { | 372 { |
373 if (!document().isActive()) | 373 if (!document().isActive()) |
374 return false; | 374 return false; |
375 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug
inWidget())->supportsKeyboardFocus(); | 375 return pluginWidget() && pluginWidget()->isPluginView() && toPluginView(plug
inWidget())->supportsKeyboardFocus(); |
376 } | 376 } |
377 | 377 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 598 |
599 void HTMLPlugInElement::lazyReattachIfNeeded() | 599 void HTMLPlugInElement::lazyReattachIfNeeded() |
600 { | 600 { |
601 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma
geType()) { | 601 if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isIma
geType()) { |
602 lazyReattachIfAttached(); | 602 lazyReattachIfAttached(); |
603 setPersistedPluginWidget(nullptr); | 603 setPersistedPluginWidget(nullptr); |
604 } | 604 } |
605 } | 605 } |
606 | 606 |
607 } // namespace blink | 607 } // namespace blink |
OLD | NEW |