Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1048)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.cpp

Issue 2400783002: Reformat comments in core/layout/svg (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698