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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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/SVGPaint.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 19 matching lines...) Expand all
30 #include "wtf/text/WTFString.h" 30 #include "wtf/text/WTFString.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 SVGPreserveAspectRatio::SVGPreserveAspectRatio() 34 SVGPreserveAspectRatio::SVGPreserveAspectRatio()
35 : m_align(SVG_PRESERVEASPECTRATIO_XMIDYMID) 35 : m_align(SVG_PRESERVEASPECTRATIO_XMIDYMID)
36 , m_meetOrSlice(SVG_MEETORSLICE_MEET) 36 , m_meetOrSlice(SVG_MEETORSLICE_MEET)
37 { 37 {
38 } 38 }
39 39
40 void SVGPreserveAspectRatio::setAlign(unsigned short align, ExceptionState& es) 40 void SVGPreserveAspectRatio::setAlign(unsigned short align, ExceptionState& exce ptionState)
41 { 41 {
42 if (align == SVG_PRESERVEASPECTRATIO_UNKNOWN || align > SVG_PRESERVEASPECTRA TIO_XMAXYMAX) { 42 if (align == SVG_PRESERVEASPECTRATIO_UNKNOWN || align > SVG_PRESERVEASPECTRA TIO_XMAXYMAX) {
43 es.throwUninformativeAndGenericDOMException(NotSupportedError); 43 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
44 return; 44 return;
45 } 45 }
46 46
47 m_align = static_cast<SVGPreserveAspectRatioType>(align); 47 m_align = static_cast<SVGPreserveAspectRatioType>(align);
48 } 48 }
49 49
50 void SVGPreserveAspectRatio::setMeetOrSlice(unsigned short meetOrSlice, Exceptio nState& es) 50 void SVGPreserveAspectRatio::setMeetOrSlice(unsigned short meetOrSlice, Exceptio nState& exceptionState)
51 { 51 {
52 if (meetOrSlice == SVG_MEETORSLICE_UNKNOWN || meetOrSlice > SVG_MEETORSLICE_ SLICE) { 52 if (meetOrSlice == SVG_MEETORSLICE_UNKNOWN || meetOrSlice > SVG_MEETORSLICE_ SLICE) {
53 es.throwUninformativeAndGenericDOMException(NotSupportedError); 53 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
54 return; 54 return;
55 } 55 }
56 56
57 m_meetOrSlice = static_cast<SVGMeetOrSliceType>(meetOrSlice); 57 m_meetOrSlice = static_cast<SVGMeetOrSliceType>(meetOrSlice);
58 } 58 }
59 59
60 template<typename CharType> 60 template<typename CharType>
61 bool SVGPreserveAspectRatio::parseInternal(const CharType*& ptr, const CharType* end, bool validate) 61 bool SVGPreserveAspectRatio::parseInternal(const CharType*& ptr, const CharType* end, bool validate)
62 { 62 {
63 // FIXME: Rewrite this parser, without gotos! 63 // FIXME: Rewrite this parser, without gotos!
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 case SVG_MEETORSLICE_UNKNOWN: 366 case SVG_MEETORSLICE_UNKNOWN:
367 return alignType; 367 return alignType;
368 case SVG_MEETORSLICE_MEET: 368 case SVG_MEETORSLICE_MEET:
369 return alignType + " meet"; 369 return alignType + " meet";
370 case SVG_MEETORSLICE_SLICE: 370 case SVG_MEETORSLICE_SLICE:
371 return alignType + " slice"; 371 return alignType + " slice";
372 } 372 }
373 } 373 }
374 374
375 } 375 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPaint.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698