This source file includes following definitions.
- canHitBoundingBox
#include "config.h"
#include "core/rendering/PointerEventsHitRules.h"
namespace WebCore {
PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, const HitTestRequest& request, EPointerEvents pointerEvents)
: requireVisible(false)
, requireFill(false)
, requireStroke(false)
, canHitStroke(false)
, canHitFill(false)
, canHitBoundingBox(false)
{
if (request.svgClipContent())
pointerEvents = PE_FILL;
if (hitTesting == SVG_GEOMETRY_HITTESTING) {
switch (pointerEvents)
{
case PE_BOUNDINGBOX:
canHitBoundingBox = true;
break;
case PE_VISIBLE_PAINTED:
case PE_AUTO:
requireFill = true;
requireStroke = true;
case PE_VISIBLE:
requireVisible = true;
canHitFill = true;
canHitStroke = true;
break;
case PE_VISIBLE_FILL:
requireVisible = true;
canHitFill = true;
break;
case PE_VISIBLE_STROKE:
requireVisible = true;
canHitStroke = true;
break;
case PE_PAINTED:
requireFill = true;
requireStroke = true;
case PE_ALL:
canHitFill = true;
canHitStroke = true;
break;
case PE_FILL:
canHitFill = true;
break;
case PE_STROKE:
canHitStroke = true;
break;
case PE_NONE:
break;
}
} else {
switch (pointerEvents)
{
case PE_BOUNDINGBOX:
canHitBoundingBox = true;
break;
case PE_VISIBLE_PAINTED:
case PE_AUTO:
requireVisible = true;
requireFill = true;
requireStroke = true;
canHitFill = true;
canHitStroke = true;
break;
case PE_VISIBLE_FILL:
case PE_VISIBLE_STROKE:
case PE_VISIBLE:
requireVisible = true;
canHitFill = true;
canHitStroke = true;
break;
case PE_PAINTED:
requireFill = true;
requireStroke = true;
canHitFill = true;
canHitStroke = true;
break;
case PE_FILL:
case PE_STROKE:
case PE_ALL:
canHitFill = true;
canHitStroke = true;
break;
case PE_NONE:
break;
}
}
}
}