Changeset 72757 in webkit


Ignore:
Timestamp:
Nov 26, 2010 3:52:32 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-11-26 Helder Correia <helder@sencha.com>

Reviewed by Ariya Hidayat.

[Qt] Blur shadow for rectangle fill
https://bugs.webkit.org/show_bug.cgi?id=44488

New fast canvas test to ensure fillRect shadow (with and without blur).

  • fast/canvas/canvas-fillRect-shadow-expected.txt: Added.
  • fast/canvas/canvas-fillRect-shadow.html: Added.
  • fast/canvas/script-tests/canvas-fillRect-shadow.js: Added.

2010-11-26 Helder Correia <helder@sencha.com>

Reviewed by Ariya Hidayat.

[Qt] Blur shadow for rectangle fill
https://bugs.webkit.org/show_bug.cgi?id=44488

Shadow color opacity needs to be set when blurring shadow with
ContextShadow.

Test: fast/canvas/canvas-fillRect-shadow.html

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::fillRect):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r72756 r72757  
     12010-11-26  Helder Correia  <helder@sencha.com>
     2
     3        Reviewed by Ariya Hidayat.
     4
     5        [Qt] Blur shadow for rectangle fill
     6        https://bugs.webkit.org/show_bug.cgi?id=44488
     7
     8        New fast canvas test to ensure fillRect shadow (with and without blur).
     9
     10        * fast/canvas/canvas-fillRect-shadow-expected.txt: Added.
     11        * fast/canvas/canvas-fillRect-shadow.html: Added.
     12        * fast/canvas/script-tests/canvas-fillRect-shadow.js: Added.
     13
    1142010-11-26  Helder Correia  <helder@sencha.com>
    215
  • trunk/WebCore/ChangeLog

    r72754 r72757  
     12010-11-26  Helder Correia  <helder@sencha.com>
     2
     3        Reviewed by Ariya Hidayat.
     4
     5        [Qt] Blur shadow for rectangle fill
     6        https://bugs.webkit.org/show_bug.cgi?id=44488
     7
     8        Shadow color opacity needs to be set when blurring shadow with
     9        ContextShadow.
     10
     11        Test: fast/canvas/canvas-fillRect-shadow.html
     12
     13        * platform/graphics/qt/GraphicsContextQt.cpp:
     14        (WebCore::GraphicsContext::fillRect):
     15
    1162010-11-26  Hans Wennborg  <hans@chromium.org>
    217
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r72741 r72757  
    708708                QPainter* shadowPainter = shadow->beginShadowLayer(p, normalizedRect);
    709709                if (shadowPainter) {
     710                    shadowPainter->setOpacity(static_cast<qreal>(shadow->m_color.alpha()) / 255);
    710711                    shadowPainter->fillRect(normalizedRect, p->brush());
    711712                    shadow->endShadowLayer(p);
Note: See TracChangeset for help on using the changeset viewer.