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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMeterElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698