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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NinePieceImagePainter_h 5 #ifndef NinePieceImagePainter_h
6 #define NinePieceImagePainter_h 6 #define NinePieceImagePainter_h
7 7
8 #include "platform/heap/Heap.h" 8 #include "platform/heap/Heap.h"
9 #include "third_party/skia/include/core/SkBlendMode.h" 9 #include "third_party/skia/include/core/SkBlendMode.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class ComputedStyle; 13 class ComputedStyle;
14 class GraphicsContext; 14 class GraphicsContext;
15 class LayoutBoxModelObject; 15 class ImageResourceObserver;
16 class Node;
16 class LayoutRect; 17 class LayoutRect;
17 class NinePieceImage; 18 class NinePieceImage;
19 class Document;
18 20
19 class NinePieceImagePainter { 21 class NinePieceImagePainter {
20 STACK_ALLOCATED(); 22 STACK_ALLOCATED();
21 23
22 public: 24 public:
25 static bool Paint(GraphicsContext&,
26 const ImageResourceObserver&,
27 const Document&,
28 Node*,
29 const LayoutRect&,
30 const ComputedStyle&,
31 const NinePieceImage&,
32 SkBlendMode = SkBlendMode::kSrcOver);
33
34 private:
23 NinePieceImagePainter() {} 35 NinePieceImagePainter() {}
24
25 bool Paint(GraphicsContext&,
26 const LayoutBoxModelObject&,
27 const LayoutRect&,
28 const ComputedStyle&,
29 const NinePieceImage&,
30 SkBlendMode) const;
31 }; 36 };
32 37
33 } // namespace blink 38 } // namespace blink
34 39
35 #endif // NinePieceImagePainter_h 40 #endif // NinePieceImagePainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698