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 | |
11 CSSPaintImageGenerator::CSSPaintImageGeneratorCreateFunction s_createFunction = nullptr; | |
12 | |
13 } // namespace | |
14 | |
15 // static | |
16 void CSSPaintImageGenerator::init(CSSPaintImageGeneratorCreateFunction createFun ction) | |
17 { | |
18 ASSERT(!s_createFunction); | |
19 s_createFunction = createFunction; | |
haraken
2016/04/11 02:18:14
It's a bit nasty to bypass the core/ => modules/ d
ikilpatrick
2016/04/11 22:34:23
I just wanted to check if this is what you meant b
haraken
2016/04/12 00:44:20
Ah, thanks -- I now understand it would be more na
ikilpatrick
2016/04/12 03:08:09
So at CSSPaintValue create time we don't have acce
haraken
2016/04/12 04:02:43
Thanks, I think our conclusion is that we need a b
| |
20 } | |
21 | |
22 // static | |
23 CSSPaintImageGenerator* CSSPaintImageGenerator::create(const String& name, Docum ent& document, Observer* observer) | |
24 { | |
25 ASSERT(s_createFunction); | |
26 return s_createFunction(name, document, observer); | |
27 } | |
28 | |
29 CSSPaintImageGenerator::~CSSPaintImageGenerator() | |
30 { | |
31 } | |
32 | |
33 } // namespace blink | |
OLD | NEW |