OLD | NEW |
(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 |
OLD | NEW |