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

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

Issue 2802593004: Move RarePaintData to its own file (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/ObjectPaintProperties.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
deleted file mode 100644
index 7327f6e9e993de2b9a455fddfe4ecf5203f1f043..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/paint/ObjectPaintProperties.h"
-
-namespace blink {
-
-std::unique_ptr<PropertyTreeState> ObjectPaintProperties::contentsProperties(
- PropertyTreeState* localBorderBoxProperties,
- ObjectPaintProperties* paintProperties) {
- if (!localBorderBoxProperties)
- return nullptr;
-
- std::unique_ptr<PropertyTreeState> contents =
- WTF::makeUnique<PropertyTreeState>(*localBorderBoxProperties);
-
- if (paintProperties) {
- if (paintProperties->scrollTranslation())
- contents->setTransform(paintProperties->scrollTranslation());
- if (paintProperties->overflowClip())
- contents->setClip(paintProperties->overflowClip());
- else if (paintProperties->cssClip())
- contents->setClip(paintProperties->cssClip());
- }
-
- // TODO(chrishtr): cssClipFixedPosition needs to be handled somehow.
-
- return contents;
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPaintProperties.h ('k') | third_party/WebKit/Source/core/paint/RarePaintData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698