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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 namespace blink { 53 namespace blink {
54 54
55 using namespace HTMLNames; 55 using namespace HTMLNames;
56 56
57 namespace { 57 namespace {
58 58
59 inline bool IsHTMLSpaceOrReplacementCharacter(UChar character) { 59 inline bool IsHTMLSpaceOrReplacementCharacter(UChar character) {
60 return IsHTMLSpace<UChar>(character) || character == kReplacementCharacter; 60 return IsHTMLSpace<UChar>(character) || character == kReplacementCharacter;
61 } 61 }
62 } 62 } // namespace
63 63
64 static TextPosition UninitializedPositionValue1() { 64 static TextPosition UninitializedPositionValue1() {
65 return TextPosition(OrdinalNumber::FromOneBasedInt(-1), 65 return TextPosition(OrdinalNumber::FromOneBasedInt(-1),
66 OrdinalNumber::First()); 66 OrdinalNumber::First());
67 } 67 }
68 68
69 static inline bool IsAllWhitespace(const StringView& string_view) { 69 static inline bool IsAllWhitespace(const StringView& string_view) {
70 return string_view.IsAllSpecialCharacters<IsHTMLSpace<UChar>>(); 70 return string_view.IsAllSpecialCharacters<IsHTMLSpace<UChar>>();
71 } 71 }
72 72
(...skipping 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after
2768 DEFINE_STRINGIFY(kAfterFramesetMode) 2768 DEFINE_STRINGIFY(kAfterFramesetMode)
2769 DEFINE_STRINGIFY(kAfterAfterBodyMode) 2769 DEFINE_STRINGIFY(kAfterAfterBodyMode)
2770 DEFINE_STRINGIFY(kAfterAfterFramesetMode) 2770 DEFINE_STRINGIFY(kAfterAfterFramesetMode)
2771 #undef DEFINE_STRINGIFY 2771 #undef DEFINE_STRINGIFY
2772 } 2772 }
2773 return "<unknown>"; 2773 return "<unknown>";
2774 } 2774 }
2775 #endif 2775 #endif
2776 2776
2777 } // namespace blink 2777 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698