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

Side by Side Diff: third_party/WebKit/Source/core/paint/FragmentData.cpp

Issue 2844803007: Introduce FragmentData, and put ObjectPaintProperties into it. (Closed)
Patch Set: Created 3 years, 7 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
(Empty)
1 // Copyright 2017 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/paint/FragmentData.h"
6 #include "core/paint/ObjectPaintProperties.h"
7
8 namespace blink {
9
10 ObjectPaintProperties& FragmentData::EnsurePaintProperties() const {
11 if (!paint_properties_)
12 paint_properties_ = ObjectPaintProperties::Create();
13 return *paint_properties_.get();
14 }
15
16 void FragmentData::ClearPaintProperties() {
17 paint_properties_.reset(nullptr);
18 }
19
20 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698