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

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

Issue 2614093002: Combine LayoutObject::previousPaintOffset and paintOffset in paint properties (Closed)
Patch Set: Resolve conflict Created 3 years, 11 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
index 54740da2ce7fe2f14f99027821f6c05bbf3980de..ae564c4d2f8bc7bcf70a5af487d9b38a298c6b25 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp
@@ -6,25 +6,23 @@
namespace blink {
-ObjectPaintProperties::PropertyTreeStateWithOffset
-ObjectPaintProperties::contentsProperties() const {
- ObjectPaintProperties::PropertyTreeStateWithOffset propertiesWithOffset =
- *localBorderBoxProperties();
+PropertyTreeState ObjectPaintProperties::contentsProperties() const {
+ PropertyTreeState properties = *localBorderBoxProperties();
if (scrollTranslation())
- propertiesWithOffset.propertyTreeState.setTransform(scrollTranslation());
+ properties.setTransform(scrollTranslation());
if (scroll())
- propertiesWithOffset.propertyTreeState.setScroll(scroll());
+ properties.setScroll(scroll());
if (overflowClip())
- propertiesWithOffset.propertyTreeState.setClip(overflowClip());
+ properties.setClip(overflowClip());
else if (cssClip())
- propertiesWithOffset.propertyTreeState.setClip(cssClip());
+ properties.setClip(cssClip());
// TODO(chrishtr): cssClipFixedPosition needs to be handled somehow.
- return propertiesWithOffset;
+ return properties;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPaintProperties.h ('k') | third_party/WebKit/Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698