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

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

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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) 2007, 2010 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const UChar* end = ptr + spec.length(); 72 const UChar* end = ptr + spec.length();
73 return parseViewSpecInternal(ptr, end); 73 return parseViewSpecInternal(ptr, end);
74 } 74 }
75 75
76 void SVGViewSpec::reset() 76 void SVGViewSpec::reset()
77 { 77 {
78 resetZoomAndPan(); 78 resetZoomAndPan();
79 m_transform->baseValue()->clear(); 79 m_transform->baseValue()->clear();
80 updateViewBox(FloatRect()); 80 updateViewBox(FloatRect());
81 ASSERT(preserveAspectRatio()); 81 ASSERT(preserveAspectRatio());
82 preserveAspectRatio()->baseValue()->setAlign(SVGPreserveAspectRatio::SVG_PRE SERVEASPECTRATIO_XMIDYMID); 82 preserveAspectRatio()->baseValue()->setAlign(SVGPreserveAspectRatio::kSvgPre serveaspectratioXmidymid);
83 preserveAspectRatio()->baseValue()->setMeetOrSlice(SVGPreserveAspectRatio::S VG_MEETORSLICE_MEET); 83 preserveAspectRatio()->baseValue()->setMeetOrSlice(SVGPreserveAspectRatio::k SvgMeetorsliceMeet);
84 m_viewTargetString = emptyString(); 84 m_viewTargetString = emptyString();
85 } 85 }
86 86
87 void SVGViewSpec::detachContextElement() 87 void SVGViewSpec::detachContextElement()
88 { 88 {
89 m_transform = nullptr; 89 m_transform = nullptr;
90 clearViewBox(); 90 clearViewBox();
91 clearPreserveAspectRatio(); 91 clearPreserveAspectRatio();
92 m_contextElement = nullptr; 92 m_contextElement = nullptr;
93 } 93 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ptr++; 209 ptr++;
210 } 210 }
211 211
212 if (ptr >= end || *ptr != ')') 212 if (ptr >= end || *ptr != ')')
213 return false; 213 return false;
214 214
215 return true; 215 return true;
216 } 216 }
217 217
218 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGUnitTypes.cpp ('k') | third_party/WebKit/Source/core/svg/SVGZoomAndPan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698