OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 bool LayoutSVGModelObject::nodeAtPoint(HitTestResult&, | 142 bool LayoutSVGModelObject::nodeAtPoint(HitTestResult&, |
143 const HitTestLocation&, | 143 const HitTestLocation&, |
144 const LayoutPoint&, | 144 const LayoutPoint&, |
145 HitTestAction) { | 145 HitTestAction) { |
146 ASSERT_NOT_REACHED(); | 146 ASSERT_NOT_REACHED(); |
147 return false; | 147 return false; |
148 } | 148 } |
149 | 149 |
150 // The SVG addOutlineRects() method adds rects in local coordinates so the defau
lt absoluteElementBoundingBoxRect() | 150 // The SVG addOutlineRects() method adds rects in local coordinates so the |
151 // returns incorrect values for SVG objects. Overriding this method provides acc
ess to the absolute bounds. | 151 // default absoluteElementBoundingBoxRect() returns incorrect values for SVG |
| 152 // objects. Overriding this method provides access to the absolute bounds. |
152 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { | 153 IntRect LayoutSVGModelObject::absoluteElementBoundingBoxRect() const { |
153 return localToAbsoluteQuad( | 154 return localToAbsoluteQuad( |
154 FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) | 155 FloatQuad(paintInvalidationRectInLocalSVGCoordinates())) |
155 .enclosingBoundingBox(); | 156 .enclosingBoundingBox(); |
156 } | 157 } |
157 | 158 |
158 } // namespace blink | 159 } // namespace blink |
OLD | NEW |