| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3d0f7059ff317f46ae362084da59707c5cdb2956
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
|
| @@ -0,0 +1,24 @@
|
| +// 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 {
|
| +
|
| +void ObjectPaintProperties::getContentsProperties(PropertyTreeState& properties) const
|
| +{
|
| + properties = localBorderBoxProperties()->propertyTreeState;
|
| + if (scrollTranslation())
|
| + properties.transform = scrollTranslation();
|
| + else if (svgLocalToBorderBoxTransform())
|
| + properties.transform = svgLocalToBorderBoxTransform();
|
| +
|
| + if (overflowClip())
|
| + properties.clip = overflowClip();
|
| + else if (cssClip())
|
| + properties.clip = cssClip();
|
| + // TODO(chrishtr): cssClipFixedPosition needs to be handled somehow.
|
| +}
|
| +
|
| +} // namespace blink
|
|
|