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

Side by Side Diff: third_party/WebKit/Source/core/xml/XPathParser.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2005 Maksim Orlovich <maksim@kde.org> 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 static XMLCat charCat(UChar aChar) { 52 static XMLCat charCat(UChar aChar) {
53 // might need to add some special cases from the XML spec. 53 // might need to add some special cases from the XML spec.
54 54
55 if (aChar == '_') 55 if (aChar == '_')
56 return NameStart; 56 return NameStart;
57 57
58 if (aChar == '.' || aChar == '-') 58 if (aChar == '.' || aChar == '-')
59 return NameCont; 59 return NameCont;
60 CharCategory category = Unicode::category(aChar); 60 CharCategory category = Unicode::category(aChar);
61 if (category & (Letter_Uppercase | Letter_Lowercase | Letter_Other | 61 if (category &
62 Letter_Titlecase | Number_Letter)) 62 (Letter_Uppercase | Letter_Lowercase | Letter_Other | Letter_Titlecase |
63 Number_Letter))
63 return NameStart; 64 return NameStart;
64 if (category & (Mark_NonSpacing | Mark_SpacingCombining | Mark_Enclosing | 65 if (category &
65 Letter_Modifier | Number_DecimalDigit)) 66 (Mark_NonSpacing | Mark_SpacingCombining | Mark_Enclosing |
67 Letter_Modifier | Number_DecimalDigit))
66 return NameCont; 68 return NameCont;
67 return NotPartOfName; 69 return NotPartOfName;
68 } 70 }
69 71
70 static void setUpAxisNamesMap(AxisNamesMap& axisNames) { 72 static void setUpAxisNamesMap(AxisNamesMap& axisNames) {
71 struct AxisName { 73 struct AxisName {
72 const char* name; 74 const char* name;
73 Step::Axis axis; 75 Step::Axis axis;
74 }; 76 };
75 const AxisName axisNameList[] = { 77 const AxisName axisNameList[] = {
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 515
514 void Parser::deleteString(String* s) { 516 void Parser::deleteString(String* s) {
515 if (!s) 517 if (!s)
516 return; 518 return;
517 519
518 DCHECK(m_strings.contains(s)); 520 DCHECK(m_strings.contains(s));
519 m_strings.erase(s); 521 m_strings.erase(s);
520 } 522 }
521 523
522 } // namespace blink 524 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathFunctionsTest.cpp ('k') | third_party/WebKit/Source/core/xml/XPathPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698