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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 238273007: Avoid duplication of calling getTransformedClipBounds in stroke APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
index 3529068fc8eb02e2a53845a328a82edda2395576..1e3d7f6fd759c609e7570bece7847488043cb0e4 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
@@ -1067,7 +1067,7 @@ void CanvasRenderingContext2D::strokeInternal(const Path& path)
FloatRect bounds = path.boundingRect();
inflateStrokeRect(bounds);
FloatRect dirtyRect;
- if (computeDirtyRect(bounds, &dirtyRect)) {
+ if (computeDirtyRect(bounds, clipBounds, &dirtyRect)) {
c->strokePath(path);
didDraw(dirtyRect);
}
@@ -1335,7 +1335,7 @@ void CanvasRenderingContext2D::strokeRect(float x, float y, float width, float h
FloatRect boundingRect = rect;
boundingRect.inflate(state().m_lineWidth / 2);
FloatRect dirtyRect;
- if (computeDirtyRect(boundingRect, &dirtyRect)) {
+ if (computeDirtyRect(boundingRect, clipBounds, &dirtyRect)) {
c->strokeRect(rect);
didDraw(dirtyRect);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698