Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1248)

Unified Diff: third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

Issue 17454: Fixing gradient problem. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (revision 7838)
+++ third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (working copy)
@@ -406,7 +406,7 @@
if (paintingDisabled())
return;
- const SkPath* oldPath = platformContext()->currentPath();
+ const SkPath* oldPath = platformContext()->currentPathInGlobalCoordinates();
SkPath path(*oldPath);
path.setFillType(clipRule == RULE_EVENODD ? SkPath::kEvenOdd_FillType : SkPath::kWinding_FillType);
platformContext()->canvas()->clipPath(path);
@@ -676,9 +676,9 @@
if (paintingDisabled())
return;
- const SkPath& path = *platformContext()->currentPath();
+ SkPath path = platformContext()->currentPathInLocalCoordinates();
if (!isPathSkiaSafe(getCTM(), path))
- return;
+ return;
const GraphicsContextState& state = m_common->state;
ColorSpace colorSpace = state.fillColorSpace;
@@ -1050,7 +1050,7 @@
if (paintingDisabled())
return;
- const SkPath& path = *platformContext()->currentPath();
+ SkPath path = platformContext()->currentPathInLocalCoordinates();
if (!isPathSkiaSafe(getCTM(), path))
return;
« no previous file with comments | « no previous file | third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698