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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainter.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/BoxPainter.h
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.h b/third_party/WebKit/Source/core/paint/BoxPainter.h
index fccb4b599f0f71356f9363705cf0fcf6b9f35088..4f118d5094c7c01ee319bba131d68a5834e77378 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.h
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.h
@@ -11,18 +11,13 @@
#include "platform/geometry/LayoutSize.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/wtf/Allocator.h"
-#include "platform/wtf/Optional.h"
-#include "third_party/skia/include/core/SkBlendMode.h"
namespace blink {
-class ComputedStyle;
class FillLayer;
-class GraphicsContext;
class InlineFlowBox;
class LayoutPoint;
class LayoutRect;
-class NinePieceImage;
struct PaintInfo;
class LayoutBox;
class LayoutObject;
@@ -61,20 +56,6 @@ class BoxPainter : public BoxPainterBase {
const LayoutSize& = LayoutSize(),
SkBlendMode = SkBlendMode::kSrcOver,
const LayoutObject* background_object = nullptr);
- static bool PaintNinePieceImage(const LayoutBoxModelObject&,
- GraphicsContext&,
- const LayoutRect&,
- const ComputedStyle&,
- const NinePieceImage&,
- SkBlendMode = SkBlendMode::kSrcOver);
- static void PaintBorder(const LayoutBoxModelObject&,
- const PaintInfo&,
- const LayoutRect&,
- const ComputedStyle&,
- BackgroundBleedAvoidance = kBackgroundBleedNone,
- bool include_logical_left_edge = true,
- bool include_logical_right_edge = true);
-
LayoutRect BoundsForDrawingRecorder(const PaintInfo&,
const LayoutPoint& adjusted_paint_offset);
@@ -87,6 +68,7 @@ class BoxPainter : public BoxPainterBase {
const LayoutRect&,
const Color& background_color,
BackgroundBleedAvoidance = kBackgroundBleedNone);
+ Node* GetNode();
const LayoutBox& layout_box_;
};
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698