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

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

Issue 227213002: globalCompositeOperation is ignored in stroke, strokeRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index be6c4a0317c94bd424050e9c8a8f5b8ebc329c79..8644398ec52bf1f1856ccd3cc8d6c03063e71d0a 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -328,7 +328,35 @@ private:
void inflateStrokeRect(FloatRect&) const;
- template<class T> void fullCanvasCompositedFill(const T&);
+ struct StrokePathFunctor {
+ void operator()(const Path& path, GraphicsContext* context)
+ {
+ context->strokePath(path);
+ }
+ };
+
+ struct StrokeRectFunctor {
+ void operator()(const FloatRect& rect, GraphicsContext* context)
+ {
+ context->strokeRect(rect);
+ }
+ };
+
+ struct FillPathFunctor {
+ void operator()(const Path& path, GraphicsContext* context)
+ {
+ context->fillPath(path);
+ }
+ };
+
+ struct FillRectFunctor {
+ void operator()(const FloatRect& rect, GraphicsContext* context)
+ {
+ context->fillRect(rect);
+ }
+ };
+
+ template<class T, class Functor> void fullCanvasComposited(const T&, Functor);
template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, const FloatRect&, CompositeOperator);
bool focusRingCallIsValid(const Path&, Element*);

Powered by Google App Engine
This is Rietveld 408576698