Changeset 63657 in webkit


Ignore:
Timestamp:
Jul 19, 2010 7:27:56 AM (14 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-07-19 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Canvas: Wrong internal positioning of drawImage() shadows
https://bugs.webkit.org/show_bug.cgi?id=42510

  • platform/graphics/qt/ImageQt.cpp: (WebCore::BitmapImage::draw):
  • platform/graphics/qt/StillImageQt.cpp: (WebCore::StillImage::draw):

2010-07-19 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Canvas: Wrong internal positioning of drawImage() shadows
https://bugs.webkit.org/show_bug.cgi?id=42510

Unskip:

  • canvas/philip/tests/2d.shadow.canvas.alpha.html
  • canvas/philip/tests/2d.shadow.canvas.transparent.1.html
  • canvas/philip/tests/2d.shadow.canvas.transparent.2.html
  • canvas/philip/tests/2d.shadow.image.alpha.html
  • canvas/philip/tests/2d.shadow.image.transparent.1.html
  • canvas/philip/tests/2d.shadow.image.transparent.2.html
  • platform/qt/Skipped:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r63656 r63657  
     12010-07-19  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Canvas: Wrong internal positioning of drawImage() shadows
     6        https://bugs.webkit.org/show_bug.cgi?id=42510
     7
     8        Unskip:
     9        - canvas/philip/tests/2d.shadow.canvas.alpha.html
     10        - canvas/philip/tests/2d.shadow.canvas.transparent.1.html
     11        - canvas/philip/tests/2d.shadow.canvas.transparent.2.html
     12        - canvas/philip/tests/2d.shadow.image.alpha.html
     13        - canvas/philip/tests/2d.shadow.image.transparent.1.html
     14        - canvas/philip/tests/2d.shadow.image.transparent.2.html
     15
     16        * platform/qt/Skipped:
     17
    1182010-07-19  Andreas Kling  <andreas.kling@nokia.com>
    219
  • trunk/LayoutTests/platform/qt/Skipped

    r63656 r63657  
    52885288canvas/philip/tests/2d.pattern.image.null.html
    52895289canvas/philip/tests/2d.pattern.image.undefined.html
    5290 canvas/philip/tests/2d.shadow.canvas.alpha.html
    5291 canvas/philip/tests/2d.shadow.canvas.transparent.1.html
    5292 canvas/philip/tests/2d.shadow.canvas.transparent.2.html
    5293 canvas/philip/tests/2d.shadow.image.alpha.html
    5294 canvas/philip/tests/2d.shadow.image.transparent.1.html
    5295 canvas/philip/tests/2d.shadow.image.transparent.2.html
    52965290canvas/philip/tests/2d.shadow.transform.2.html
    52975291canvas/philip/tests/2d.text.draw.baseline.bottom.html
  • trunk/WebCore/ChangeLog

    r63656 r63657  
     12010-07-19  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Canvas: Wrong internal positioning of drawImage() shadows
     6        https://bugs.webkit.org/show_bug.cgi?id=42510
     7
     8        * platform/graphics/qt/ImageQt.cpp:
     9        (WebCore::BitmapImage::draw):
     10        * platform/graphics/qt/StillImageQt.cpp:
     11        (WebCore::StillImage::draw):
     12
    1132010-07-19  Andreas Kling  <andreas.kling@nokia.com>
    214
  • trunk/WebCore/platform/graphics/qt/ImageQt.cpp

    r63429 r63657  
    203203        p.fillRect(shadowImage.rect(), shadowColor);
    204204        p.setCompositionMode(QPainter::CompositionMode_DestinationIn);
    205         p.drawPixmap(normalizedDst, *image, normalizedSrc);
     205        p.drawPixmap(QRect(0, 0, normalizedDst.width(), normalizedDst.height()), *image, normalizedSrc);
    206206        p.end();
    207207        painter->drawImage(shadowImageRect, shadowImage, normalizedSrc);
  • trunk/WebCore/platform/graphics/qt/StillImageQt.cpp

    r63656 r63657  
    8989        p.fillRect(shadowImage.rect(), shadowColor);
    9090        p.setCompositionMode(QPainter::CompositionMode_DestinationIn);
    91         p.drawPixmap(normalizedDst, *m_pixmap, normalizedSrc);
     91        p.drawPixmap(QRect(0, 0, normalizedDst.width(), normalizedDst.height()), *m_pixmap, normalizedSrc);
    9292        p.end();
    9393        painter->drawImage(shadowImageRect, shadowImage, normalizedSrc);
Note: See TracChangeset for help on using the changeset viewer.