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

Unified Diff: third_party/WebKit/Source/core/paint/NinePieceImagePainter.h

Issue 2942123002: Break LayoutObject dependency for NinePieceImagePainter (Closed)
Patch Set: Pass document explicitly Created 3 years, 6 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: third_party/WebKit/Source/core/paint/NinePieceImagePainter.h
diff --git a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.h b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.h
index 23b17a68aa64b5c27d096c755617e57387ac30d0..d296af08f463a6e855a72af98686eb7bc7890430 100644
--- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.h
+++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.h
@@ -12,22 +12,27 @@ namespace blink {
class ComputedStyle;
class GraphicsContext;
-class LayoutBoxModelObject;
+class ImageResourceObserver;
+class Node;
class LayoutRect;
class NinePieceImage;
+class Document;
class NinePieceImagePainter {
STACK_ALLOCATED();
public:
+ static bool Paint(GraphicsContext&,
+ const ImageResourceObserver&,
+ const Document&,
+ Node*,
+ const LayoutRect&,
+ const ComputedStyle&,
+ const NinePieceImage&,
+ SkBlendMode = SkBlendMode::kSrcOver);
+
+ private:
NinePieceImagePainter() {}
-
- bool Paint(GraphicsContext&,
- const LayoutBoxModelObject&,
- const LayoutRect&,
- const ComputedStyle&,
- const NinePieceImage&,
- SkBlendMode) const;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698