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

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

Issue 328553004: Get rid of scheduleSVGFilterLayerUpdateHack call for plugins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: get rid of style recalc Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 Vector<String> paramNames; 172 Vector<String> paramNames;
173 Vector<String> paramValues; 173 Vector<String> paramValues;
174 174
175 paramNames.append("type"); 175 paramNames.append("type");
176 paramValues.append(m_serviceType); 176 paramValues.append(m_serviceType);
177 177
178 bool useFallback = false; 178 bool useFallback = false;
179 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false); 179 loadPlugin(url, m_serviceType, paramNames, paramValues, useFallback, false);
180 } 180 }
181 181
182 bool HTMLPlugInElement::shouldAccelerate() const
183 {
184 if (Widget* widget = ownedWidget())
185 return widget->isPluginView() && toPluginView(widget)->platformLayer();
186 return false;
187 }
188
182 void HTMLPlugInElement::detach(const AttachContext& context) 189 void HTMLPlugInElement::detach(const AttachContext& context)
183 { 190 {
184 // Update the widget the next time we attach (detaching destroys the plugin) . 191 // Update the widget the next time we attach (detaching destroys the plugin) .
185 // FIXME: None of this "needsWidgetUpdate" related code looks right. 192 // FIXME: None of this "needsWidgetUpdate" related code looks right.
186 if (renderer() && !useFallbackContent()) 193 if (renderer() && !useFallbackContent())
187 setNeedsWidgetUpdate(true); 194 setNeedsWidgetUpdate(true);
188 if (m_isDelayingLoadEvent) { 195 if (m_isDelayingLoadEvent) {
189 m_isDelayingLoadEvent = false; 196 m_isDelayingLoadEvent = false;
190 document().decrementLoadEventDelayCount(); 197 document().decrementLoadEventDelayCount();
191 } 198 }
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 { 572 {
566 return false; 573 return false;
567 } 574 }
568 575
569 bool HTMLPlugInElement::useFallbackContent() const 576 bool HTMLPlugInElement::useFallbackContent() const
570 { 577 {
571 return hasAuthorShadowRoot(); 578 return hasAuthorShadowRoot();
572 } 579 }
573 580
574 } 581 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLPlugInElement.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698