OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 2 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, | 73 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, |
74 request, | 74 request, |
75 layoutObject()->style()->pointerEvents()); | 75 layoutObject()->style()->pointerEvents()); |
76 hitRules.canHitFill = false; | 76 hitRules.canHitFill = false; |
77 return toLayoutSVGShape(layoutObject()) | 77 return toLayoutSVGShape(layoutObject()) |
78 ->nodeAtFloatPointInternal(request, point->target()->value(), hitRules); | 78 ->nodeAtFloatPointInternal(request, point->target()->value(), hitRules); |
79 } | 79 } |
80 | 80 |
81 void SVGGeometryElement::toClipPath(Path& path) const { | 81 void SVGGeometryElement::toClipPath(Path& path) const { |
82 path = asPath(); | 82 path = asPath(); |
83 path.transform(calculateAnimatedLocalTransform()); | 83 path.transform(calculateTransform(SVGElement::IncludeMotionTransform)); |
84 | 84 |
85 ASSERT(layoutObject()); | 85 ASSERT(layoutObject()); |
86 ASSERT(layoutObject()->style()); | 86 ASSERT(layoutObject()->style()); |
87 path.setWindRule(layoutObject()->style()->svgStyle().clipRule()); | 87 path.setWindRule(layoutObject()->style()->svgStyle().clipRule()); |
88 } | 88 } |
89 | 89 |
90 float SVGGeometryElement::getTotalLength() { | 90 float SVGGeometryElement::getTotalLength() { |
91 document().updateStyleAndLayoutIgnorePendingStylesheets(); | 91 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
92 | 92 |
93 if (!layoutObject()) | 93 if (!layoutObject()) |
(...skipping 10 matching lines...) Expand all Loading... |
104 return SVGPointTearOff::create(SVGPoint::create(point), 0, | 104 return SVGPointTearOff::create(SVGPoint::create(point), 0, |
105 PropertyIsNotAnimVal); | 105 PropertyIsNotAnimVal); |
106 } | 106 } |
107 | 107 |
108 LayoutObject* SVGGeometryElement::createLayoutObject(const ComputedStyle&) { | 108 LayoutObject* SVGGeometryElement::createLayoutObject(const ComputedStyle&) { |
109 // By default, any subclass is expected to do path-based drawing. | 109 // By default, any subclass is expected to do path-based drawing. |
110 return new LayoutSVGPath(this); | 110 return new LayoutSVGPath(this); |
111 } | 111 } |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
OLD | NEW |