Chromium Code Reviews| Index: Source/core/paint/DeprecatedPaintLayer.cpp |
| diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp |
| index 7efcb1de19bc2510a2d8fdf498145e7b3b390274..fc291b9f1bdaa04b0e22f94d7d32de1bf9b80ee5 100644 |
| --- a/Source/core/paint/DeprecatedPaintLayer.cpp |
| +++ b/Source/core/paint/DeprecatedPaintLayer.cpp |
| @@ -1561,7 +1561,7 @@ PassRefPtr<HitTestingTransformState> DeprecatedPaintLayer::createLocalTransformS |
| } else { |
| // If this is the first time we need to make transform state, then base it off of hitTestLocation, |
| // which is relative to rootLayer. |
| - transformState = HitTestingTransformState::create(hitTestLocation.transformedPoint(), hitTestLocation.transformedRect(), FloatQuad(hitTestRect)); |
| + transformState = HitTestingTransformState::create(hitTestLocation.transformedPoint(), hitTestLocation.transformedRect(), FloatQuad(FloatRect(hitTestRect))); |
| convertToLayerCoords(rootLayer, offset); |
| } |
| offset.moveBy(translationOffset); |
| @@ -2165,7 +2165,7 @@ LayoutRect DeprecatedPaintLayer::boundingBoxForCompositing(const DeprecatedPaint |
| return LayoutRect(); |
| LayoutRect result = clipper().localClipRect(); |
| - if (result == LayoutRect::infiniteIntRect()) { |
| + if (IntRect(result) == LayoutRect::infiniteIntRect()) { |
|
jbroman
2015/08/26 19:06:43
I don't know what this method is doing right now,
chrishtr
2015/08/26 20:53:51
Fixed this, and the one I already committed that w
|
| LayoutPoint origin; |
| result = physicalBoundingBox(ancestorLayer, &origin); |