[Webkit-unassigned] [Bug 22026] [Transforms] Transformed element is clipped when opacity is applied
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 3 13:46:49 PST 2008
https://bugs.webkit.org/show_bug.cgi?id=22026
simon.fraser at apple.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hyatt at apple.com
AssignedTo|webkit- |simon.fraser at apple.com
|unassigned at lists.webkit.org |
------- Comment #3 from simon.fraser at apple.com 2008-11-03 13:46 PDT -------
diff --git a/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
b/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
index 3f0e6e7..31fcc2b 100644
--- a/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
+++ b/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
@@ -651,6 +651,12 @@ void GraphicsContext::beginTransparencyLayer(float
opacity)
CGContextSaveGState(context);
CGContextSetAlpha(context, opacity);
CGContextBeginTransparencyLayer(context, 0);
+
+ // paint a big rect so we can see how big the layer is
+ float red[] = { 1.0f, 0.0f, 0.0f, 0.1f };
+ CGContextSetFillColor(context, red);
+ CGContextFillRect(context, CGRectMake(-1000.0f, -1000.0f, 2000.0f,
2000.0f));
+
m_data->beginTransparencyLayer();
m_data->m_userToDeviceTransformKnownToBeIdentity = false;
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list