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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLDimension.cpp

Issue 2812013004: Rewrite references to "wtf/" to "platform/wtf/" in core/{dom,html,xml}. (Closed)
Patch Set: Created 3 years, 8 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/html/HTMLDimension.h" 31 #include "core/html/HTMLDimension.h"
32 32
33 #include "core/html/parser/HTMLParserIdioms.h" 33 #include "core/html/parser/HTMLParserIdioms.h"
34 #include "wtf/MathExtras.h" 34 #include "platform/wtf/MathExtras.h"
35 #include "wtf/text/ParsingUtilities.h" 35 #include "platform/wtf/text/ParsingUtilities.h"
36 #include "wtf/text/StringToNumber.h" 36 #include "platform/wtf/text/StringToNumber.h"
37 #include "wtf/text/WTFString.h" 37 #include "platform/wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 template <typename CharacterType> 41 template <typename CharacterType>
42 static HTMLDimension ParseDimension(const CharacterType* characters, 42 static HTMLDimension ParseDimension(const CharacterType* characters,
43 size_t last_parsed_index, 43 size_t last_parsed_index,
44 size_t end_of_current_token) { 44 size_t end_of_current_token) {
45 HTMLDimension::HTMLDimensionType type = HTMLDimension::kAbsolute; 45 HTMLDimension::HTMLDimensionType type = HTMLDimension::kAbsolute;
46 double value = 0.; 46 double value = 0.;
47 47
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return false; 191 return false;
192 if (input.Is8Bit()) { 192 if (input.Is8Bit()) {
193 return ParseDimensionValue(input.Characters8(), 193 return ParseDimensionValue(input.Characters8(),
194 input.Characters8() + input.length(), dimension); 194 input.Characters8() + input.length(), dimension);
195 } 195 }
196 return ParseDimensionValue(input.Characters16(), 196 return ParseDimensionValue(input.Characters16(),
197 input.Characters16() + input.length(), dimension); 197 input.Characters16() + input.length(), dimension);
198 } 198 }
199 199
200 } // namespace blink 200 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLDimension.h ('k') | third_party/WebKit/Source/core/html/HTMLDimensionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698