| 133 | } |
| 134 | |
| 135 | void HitTestContext::drawImageRect(std::shared_ptr<Image>, const Rect&, const Rect& dstRect, |
| 136 | const SamplingOptions&, const MCState& state, const Fill& fill, |
| 137 | SrcRectConstraint) { |
| 138 | // Images are always checked against their bounding box. |
| 139 | Point local = {}; |
| 140 | if (!GetLocalPoint(state.matrix, deviceX, deviceY, &local)) { |
| 141 | return; |
| 142 | } |
| 143 | if (dstRect.contains(local.x, local.y) && checkClipAndFill(state.clip, fill, local)) { |
| 144 | hit = true; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | void HitTestContext::drawGlyphRunList(std::shared_ptr<GlyphRunList> glyphRunList, |
| 149 | const MCState& state, const Fill& fill, |
nothing calls this directly
no test coverage detected