OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #include "core/css/CSSPaintImageGenerator.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 namespace { |
| 10 CSSPaintImageGenerator::CSSPaintImageGeneratorCreateFunction s_createFunction =
nullptr; |
| 11 } // namespace |
| 12 |
| 13 // static |
| 14 void CSSPaintImageGenerator::init(CSSPaintImageGeneratorCreateFunction createFun
ction) |
| 15 { |
| 16 ASSERT(!s_createFunction); |
| 17 s_createFunction = createFunction; |
| 18 } |
| 19 |
| 20 // static |
| 21 PassRefPtrWillBeRawPtr<CSSPaintImageGenerator> CSSPaintImageGenerator::create(co
nst String& name, Document& document, Observer* observer) |
| 22 { |
| 23 ASSERT(s_createFunction); |
| 24 return s_createFunction(name, document, observer); |
| 25 } |
| 26 |
| 27 } // namespace blink |
OLD | NEW |