Changeset 98599 in webkit


Ignore:
Timestamp:
Oct 27, 2011 10:27:15 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

[Cairo] Implement ShareableBitmap::paint() when scaleFactor=1
https://bugs.webkit.org/show_bug.cgi?id=71027

Reviewed by Martin Robinson.

Fixes windowless plugins in GTK+ port.

  • Shared/cairo/ShareableBitmapCairo.cpp:

(WebKit::ShareableBitmap::paint): When scaleFactor is 1, simply
call the paint method that doesn't receive a scaleFactor.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r98598 r98599  
     12011-10-27  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [Cairo] Implement ShareableBitmap::paint() when scaleFactor=1
     4        https://bugs.webkit.org/show_bug.cgi?id=71027
     5
     6        Reviewed by Martin Robinson.
     7
     8        Fixes windowless plugins in GTK+ port.
     9
     10        * Shared/cairo/ShareableBitmapCairo.cpp:
     11        (WebKit::ShareableBitmap::paint): When scaleFactor is 1, simply
     12        call the paint method that doesn't receive a scaleFactor.
     13
    1142011-10-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WebKit2/Shared/cairo/ShareableBitmapCairo.cpp

    r95901 r98599  
    5656}
    5757
    58 void ShareableBitmap::paint(GraphicsContext&, float /*scaleFactor*/, const IntPoint& /*dstPoint*/, const IntRect& /*srcRect*/)
     58void ShareableBitmap::paint(GraphicsContext& context, float scaleFactor, const IntPoint& dstPoint, const IntRect& srcRect)
    5959{
    60     // See <https://bugs.webkit.org/show_bug.cgi?id=64665>.
    61     notImplemented();
     60    if (scaleFactor != 1) {
     61        // See <https://bugs.webkit.org/show_bug.cgi?id=64665>.
     62        notImplemented();
     63        return;
     64    }
     65    paint(context, dstPoint, srcRect);
    6266}
    6367
Note: See TracChangeset for help on using the changeset viewer.