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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPaintImageGenerator.cpp

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)
Patch Set: Address reviewer comments 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 2016 The Chromium Authors. All rights reserved. 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 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 #include "core/css/CSSPaintImageGenerator.h" 5 #include "core/css/CSSPaintImageGenerator.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 namespace { 9 namespace {
10 10
11 CSSPaintImageGenerator::CSSPaintImageGeneratorCreateFunction g_create_function = 11 CSSPaintImageGenerator::CSSPaintImageGeneratorCreateFunction g_create_function =
12 nullptr; 12 nullptr;
13 13
14 } // namespace 14 } // namespace
15 15
16 // static 16 // static
17 void CSSPaintImageGenerator::Init( 17 void CSSPaintImageGenerator::Init(
18 CSSPaintImageGeneratorCreateFunction create_function) { 18 CSSPaintImageGeneratorCreateFunction create_function) {
19 DCHECK(!g_create_function); 19 DCHECK(!g_create_function);
20 g_create_function = create_function; 20 g_create_function = create_function;
21 } 21 }
22 22
23 // static 23 // static
24 CSSPaintImageGenerator* CSSPaintImageGenerator::Create(const String& name, 24 CSSPaintImageGenerator* CSSPaintImageGenerator::Create(const String& name,
25 Document& document, 25 const Document& document,
26 Observer* observer) { 26 Observer* observer) {
27 DCHECK(g_create_function); 27 DCHECK(g_create_function);
28 return g_create_function(name, document, observer); 28 return g_create_function(name, document, observer);
29 } 29 }
30 30
31 CSSPaintImageGenerator::~CSSPaintImageGenerator() {} 31 CSSPaintImageGenerator::~CSSPaintImageGenerator() {}
32 32
33 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698