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

Unified Diff: third_party/WebKit/Source/core/paint/RarePaintData.cpp

Issue 2844803007: Introduce FragmentData, and put ObjectPaintProperties into it. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/RarePaintData.cpp
diff --git a/third_party/WebKit/Source/core/paint/RarePaintData.cpp b/third_party/WebKit/Source/core/paint/RarePaintData.cpp
index 896be5123214fb527973d4f34edf7484b5f6e782..c7626b10696a9579398f3259f43104bfd8652885 100644
--- a/third_party/WebKit/Source/core/paint/RarePaintData.cpp
+++ b/third_party/WebKit/Source/core/paint/RarePaintData.cpp
@@ -4,7 +4,7 @@
#include "core/paint/RarePaintData.h"
-#include "core/paint/ObjectPaintProperties.h"
+#include "core/paint/FragmentData.h"
#include "core/paint/PaintLayer.h"
namespace blink {
@@ -17,10 +17,10 @@ void RarePaintData::SetLayer(std::unique_ptr<PaintLayer> layer) {
layer_ = std::move(layer);
};
-ObjectPaintProperties& RarePaintData::EnsurePaintProperties() {
- if (!paint_properties_)
- paint_properties_ = ObjectPaintProperties::Create();
- return *paint_properties_.get();
+FragmentData& RarePaintData::EnsureFragment() const {
+ if (!fragment_data_)
+ fragment_data_ = FragmentData::Create();
+ return *fragment_data_.get();
}
void RarePaintData::ClearPaintProperties() {

Powered by Google App Engine
This is Rietveld 408576698