Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
index 5255bb300d90dc11ced663264acbfcd9eec11f6b..600874397af38bbd582fe7aedaf33bd591eae3d6 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -98,22 +98,7 @@ static IntRect backgroundRect(const LayoutObject* layoutObject) |
LayoutRect rect; |
const LayoutBox* box = toLayoutBox(layoutObject); |
- EFillBox clip = box->style()->backgroundClip(); |
- switch (clip) { |
- case BorderFillBox: |
- rect = box->borderBoxRect(); |
- break; |
- case PaddingFillBox: |
- rect = box->paddingBoxRect(); |
- break; |
- case ContentFillBox: |
- rect = box->contentBoxRect(); |
- break; |
- case TextFillBox: |
- break; |
- } |
- |
- return pixelSnappedIntRect(rect); |
+ return pixelSnappedIntRect(box->backgroundClipRect()); |
} |
static inline bool isAcceleratedCanvas(const LayoutObject* layoutObject) |