Changeset 76033 in webkit
- Timestamp:
- Jan 18, 2011 10:10:37 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r76032 r76033 1 2011-01-18 Helder Correia <helder@sencha.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Incorrect shadow alpha with semi-transparent solid fillStyle 6 https://bugs.webkit.org/show_bug.cgi?id=52611 7 8 This is related to bug 52559. The shadow color alpha must be multiplied 9 by the context brush alpha. 10 11 New test to ensure correct behavior of canvas with fillPath using a 12 semi-transparent fillStyle color and a shadow. 13 14 * fast/canvas/canvas-fillPath-alpha-shadow-expected.txt: Added. 15 * fast/canvas/canvas-fillPath-alpha-shadow.html: Added. 16 * fast/canvas/script-tests/canvas-fillPath-alpha-shadow.js: Added. 17 1 18 2011-01-18 John Knottenbelt <jknotten@chromium.org> 2 19 -
trunk/Source/WebCore/ChangeLog
r76030 r76033 1 2011-01-18 Helder Correia <helder@sencha.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Incorrect shadow alpha with semi-transparent solid fillStyle 6 https://bugs.webkit.org/show_bug.cgi?id=52611 7 8 This is related to bug 52559. The shadow color alpha must be multiplied 9 by the context brush alpha. 10 11 Test: fast/canvas/canvas-fillPath-alpha-shadow.html 12 13 * platform/graphics/qt/GraphicsContextQt.cpp: 14 (WebCore::GraphicsContext::fillPath): 15 1 16 2011-01-18 Andrey Kosyakov <caseq@chromium.org> 2 17 -
trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r75973 r76033 9 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). 10 10 * Copyright (C) 2008 Dirk Schulze <vbs85@gmx.de> 11 * Copyright (C) 2010 Sencha, Inc.11 * Copyright (C) 2010, 2011 Sencha, Inc. 12 12 * 13 13 * All rights reserved. … … 506 506 shadowPainter->setOpacity(static_cast<qreal>(shadow->m_color.alpha()) / 255); 507 507 shadowPainter->fillPath(platformPath, brush); 508 } else 509 shadowPainter->fillPath(platformPath, QColor(shadow->m_color)); 508 } else { 509 QColor shadowColor = shadow->m_color; 510 shadowColor.setAlphaF(shadowColor.alphaF() * p->brush().color().alphaF()); 511 shadowPainter->fillPath(platformPath, shadowColor); 512 } 510 513 shadow->endShadowLayer(this); 511 514 } … … 513 516 QPointF offset = shadow->offset(); 514 517 p->translate(offset); 515 p->fillPath(platformPath, QColor(shadow->m_color)); 518 QColor shadowColor = shadow->m_color; 519 shadowColor.setAlphaF(shadowColor.alphaF() * p->brush().color().alphaF()); 520 p->fillPath(platformPath, shadowColor); 516 521 p->translate(-offset); 517 522 }
Note: See TracChangeset
for help on using the changeset viewer.