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

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

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 return currentPosition + adjustedBreakIndexInSubstring; 214 return currentPosition + adjustedBreakIndexInSubstring;
215 // We failed to find a breakable point, let the caller figure out what to do . 215 // We failed to find a breakable point, let the caller figure out what to do .
216 return 0; 216 return 0;
217 } 217 }
218 218
219 static String atomizeIfAllWhitespace(const String& string, WhitespaceMode whites paceMode) 219 static String atomizeIfAllWhitespace(const String& string, WhitespaceMode whites paceMode)
220 { 220 {
221 // Strings composed entirely of whitespace are likely to be repeated. 221 // Strings composed entirely of whitespace are likely to be repeated.
222 // Turn them into AtomicString so we share a single string for each. 222 // Turn them into AtomicString so we share a single string for each.
223 if (whitespaceMode == AllWhitespace || (whitespaceMode == WhitespaceUnknown && isAllWhitespace(string))) 223 if (whitespaceMode == AllWhitespace || (whitespaceMode == WhitespaceUnknown && isAllWhitespace(string)))
224 return AtomicString(string).string(); 224 return AtomicString(string).getString();
225 return string; 225 return string;
226 } 226 }
227 227
228 void HTMLConstructionSite::flushPendingText(FlushMode mode) 228 void HTMLConstructionSite::flushPendingText(FlushMode mode)
229 { 229 {
230 if (m_pendingText.isEmpty()) 230 if (m_pendingText.isEmpty())
231 return; 231 return;
232 232
233 if (mode == FlushIfAtTextLimit 233 if (mode == FlushIfAtTextLimit
234 && !shouldUseLengthLimit(*m_pendingText.parent)) 234 && !shouldUseLengthLimit(*m_pendingText.parent))
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 queueTask(task); 874 queueTask(task);
875 } 875 }
876 876
877 DEFINE_TRACE(HTMLConstructionSite::PendingText) 877 DEFINE_TRACE(HTMLConstructionSite::PendingText)
878 { 878 {
879 visitor->trace(parent); 879 visitor->trace(parent);
880 visitor->trace(nextChild); 880 visitor->trace(nextChild);
881 } 881 }
882 882
883 } // namespace blink 883 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698