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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainterBase.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/BoxPainterBase.h
diff --git a/third_party/WebKit/Source/core/paint/BoxPainterBase.h b/third_party/WebKit/Source/core/paint/BoxPainterBase.h
index f4131d005ef05c74cc58dbd90052d18606709d0e..49990d54998b04effa92f47dbd4ca82554035d72 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainterBase.h
+++ b/third_party/WebKit/Source/core/paint/BoxPainterBase.h
@@ -10,6 +10,7 @@
#include "core/style/StyleImage.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/wtf/Allocator.h"
+#include "third_party/skia/include/core/SkBlendMode.h"
namespace blink {
@@ -20,6 +21,7 @@ class LayoutPoint;
class LayoutRect;
class FillLayer;
class LayoutRectOutsets;
+class ImageResourceObserver;
struct PaintInfo;
// Base class for box painting. Has no dependencies on the layout tree and thus
@@ -55,6 +57,16 @@ class BoxPainterBase {
bool include_logical_left_edge = true,
bool include_logical_right_edge = true);
+ static void PaintBorder(const ImageResourceObserver&,
+ const Document&,
+ Node*,
+ const PaintInfo&,
+ const LayoutRect&,
+ const ComputedStyle&,
+ BackgroundBleedAvoidance = kBackgroundBleedNone,
+ bool include_logical_left_edge = true,
+ bool include_logical_right_edge = true);
+
static bool ShouldForceWhiteBackgroundForPrintEconomy(const Document&,
const ComputedStyle&);
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainterBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698