diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-20 18:05:07 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-20 18:05:07 +0000 |
commit | 280fb8c83279097747ff87b60e81aff956920bc1 (patch) | |
tree | d96d08d26dd8498ad497e9e10e6e78b29f8b034c /webkit/glue/webplugin_impl.h | |
parent | 095e60bc9356f740f2dea8b7c0f85cfaca92c519 (diff) | |
download | chromium_src-280fb8c83279097747ff87b60e81aff956920bc1.zip chromium_src-280fb8c83279097747ff87b60e81aff956920bc1.tar.gz chromium_src-280fb8c83279097747ff87b60e81aff956920bc1.tar.bz2 |
Fix perf regression with iframe shim.
See http://codereview.chromium.org/7654
Patch by tulrich@google.com, reviewed by pkasting
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3609 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.h')
-rw-r--r-- | webkit/glue/webplugin_impl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/glue/webplugin_impl.h b/webkit/glue/webplugin_impl.h index 33595cb..56fa705 100644 --- a/webkit/glue/webplugin_impl.h +++ b/webkit/glue/webplugin_impl.h @@ -67,11 +67,13 @@ class WebPluginContainer : public WebCore::Widget { virtual void detachFromWindow(); // Returns window-relative rectangles that should clip this widget. + // Only rects that intersect the given bounds are relevant. // Use this to implement iframe shim behavior. // // TODO(tulrich): add this method to WebCore/platform/Widget.h so it // can be used by any platform. - void windowCutoutRects(WTF::Vector<WebCore::IntRect>* cutouts) const; + void windowCutoutRects(const WebCore::IntRect& bounds, + WTF::Vector<WebCore::IntRect>* cutouts) const; // These methods are invoked from webkit when it has data to be sent to the // plugin. The plugin in this case does not initiate a download for the data. @@ -186,11 +188,13 @@ class WebPluginImpl : public WebPlugin, virtual void geometryChanged() const; // Returns window-relative rectangles that should clip this widget. + // Only rects that intersect the given bounds are relevant. // Use this to implement iframe shim behavior. // // TODO(tulrich): windowCutoutRects() is not in WebCore::Widgets // yet; need to add it. - void windowCutoutRects(WTF::Vector<WebCore::IntRect>* rects) const; + void windowCutoutRects(const WebCore::IntRect& bounds, + WTF::Vector<WebCore::IntRect>* rects) const; // Override for when our window changes size or position. // Used to notify the plugin when the size or position changes. |