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

Side by Side Diff: Source/core/svg/SVGTextContentElement.cpp

Issue 19096011: Get rid of SVGRect special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGTextContentElement.h ('k') | Source/core/svg/SVGZoomEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 document()->updateLayoutIgnorePendingStylesheets(); 142 document()->updateLayoutIgnorePendingStylesheets();
143 143
144 if (charnum > getNumberOfChars()) { 144 if (charnum > getNumberOfChars()) {
145 ec = IndexSizeError; 145 ec = IndexSizeError;
146 return FloatPoint(); 146 return FloatPoint();
147 } 147 }
148 148
149 return SVGTextQuery(renderer()).endPositionOfCharacter(charnum); 149 return SVGTextQuery(renderer()).endPositionOfCharacter(charnum);
150 } 150 }
151 151
152 FloatRect SVGTextContentElement::getExtentOfChar(unsigned charnum, ExceptionCode & ec) 152 SVGRect SVGTextContentElement::getExtentOfChar(unsigned charnum, ExceptionCode& ec)
153 { 153 {
154 document()->updateLayoutIgnorePendingStylesheets(); 154 document()->updateLayoutIgnorePendingStylesheets();
155 155
156 if (charnum > getNumberOfChars()) { 156 if (charnum > getNumberOfChars()) {
157 ec = IndexSizeError; 157 ec = IndexSizeError;
158 return FloatRect(); 158 return SVGRect();
159 } 159 }
160 160
161 return SVGTextQuery(renderer()).extentOfCharacter(charnum); 161 return SVGTextQuery(renderer()).extentOfCharacter(charnum);
162 } 162 }
163 163
164 float SVGTextContentElement::getRotationOfChar(unsigned charnum, ExceptionCode& ec) 164 float SVGTextContentElement::getRotationOfChar(unsigned charnum, ExceptionCode& ec)
165 { 165 {
166 document()->updateLayoutIgnorePendingStylesheets(); 166 document()->updateLayoutIgnorePendingStylesheets();
167 167
168 if (charnum > getNumberOfChars()) { 168 if (charnum > getNumberOfChars()) {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 SVGElement* element = toSVGElement(renderer->node()); 298 SVGElement* element = toSVGElement(renderer->node());
299 ASSERT(element); 299 ASSERT(element);
300 300
301 if (!element->isTextContent()) 301 if (!element->isTextContent())
302 return 0; 302 return 0;
303 303
304 return toSVGTextContentElement(element); 304 return toSVGTextContentElement(element);
305 } 305 }
306 306
307 } 307 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextContentElement.h ('k') | Source/core/svg/SVGZoomEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698