| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
|
| index 1e62ca9fcd732c047ec41330e5413b32b2ead2ca..81ee3f707812c438943b97c04d141adebd240222 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp
|
| @@ -187,10 +187,10 @@ bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, const FloatPoin
|
| }
|
| }
|
|
|
| - // pointer-events=boundingBox makes it possible for containers to be direct targets
|
| + // pointer-events: bounding-box makes it possible for containers to be direct targets.
|
| if (style()->pointerEvents() == PE_BOUNDINGBOX) {
|
| - ASSERT(isObjectBoundingBoxValid());
|
| - if (objectBoundingBox().contains(localPoint)) {
|
| + // Check for a valid bounding box because it will be invalid for empty containers.
|
| + if (isObjectBoundingBoxValid() && objectBoundingBox().contains(localPoint)) {
|
| const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint);
|
| updateHitTestResult(result, localLayoutPoint);
|
| if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == StopHitTesting)
|
|
|