Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / paint / NinePieceImagePainter.h
blobc11483e52d33859c2ae0ca811fb65407fa38acc9
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
3 // found in the LICENSE file.
5 #ifndef NinePieceImagePainter_h
6 #define NinePieceImagePainter_h
8 #include "platform/heap/Heap.h"
9 #include "third_party/skia/include/core/SkXfermode.h"
11 namespace blink {
13 class ComputedStyle;
14 class GraphicsContext;
15 class LayoutBoxModelObject;
16 class LayoutRect;
17 class NinePieceImage;
19 class NinePieceImagePainter {
20 STACK_ALLOCATED();
21 public:
22 NinePieceImagePainter(LayoutBoxModelObject&);
24 bool paint(GraphicsContext*, const LayoutRect&, const ComputedStyle&, const NinePieceImage&, SkXfermode::Mode) const;
26 private:
27 LayoutBoxModelObject& m_layoutObject;
30 } // namespace blink
32 #endif // NinePieceImagePainter_h