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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "core/paint/ObjectPaintProperties.h"
6
7 namespace blink {
8
9 std::unique_ptr<PropertyTreeState> ObjectPaintProperties::contentsProperties(
10 PropertyTreeState* localBorderBoxProperties,
11 ObjectPaintProperties* paintProperties) {
12 if (!localBorderBoxProperties)
13 return nullptr;
14
15 std::unique_ptr<PropertyTreeState> contents =
16 WTF::makeUnique<PropertyTreeState>(*localBorderBoxProperties);
17
18 if (paintProperties) {
19 if (paintProperties->scrollTranslation())
20 contents->setTransform(paintProperties->scrollTranslation());
21 if (paintProperties->overflowClip())
22 contents->setClip(paintProperties->overflowClip());
23 else if (paintProperties->cssClip())
24 contents->setClip(paintProperties->cssClip());
25 }
26
27 // TODO(chrishtr): cssClipFixedPosition needs to be handled somehow.
28
29 return contents;
30 }
31
32 } // namespace blink
OLDNEW
« 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