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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
index 0a1ea0cc3a1038dd4ce3964e15cb76ab8e1bbddc..30334e0483c2fbe35d61cd0848cd6f873bf88096 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_inline_items_builder.cc
@@ -17,7 +17,7 @@ NGLayoutInlineItemsBuilder::~NGLayoutInlineItemsBuilder() {
String NGLayoutInlineItemsBuilder::ToString() {
if (has_pending_newline_)
- ProcessPendingNewline(emptyString(), nullptr);
+ ProcessPendingNewline(emptyString, nullptr);
return text_.toString();
}
@@ -167,7 +167,7 @@ void NGLayoutInlineItemsBuilder::Append(UChar character,
DCHECK(character != spaceCharacter && character != tabulationCharacter &&
character != newlineCharacter && character != zeroWidthSpaceCharacter);
if (has_pending_newline_)
- ProcessPendingNewline(emptyString(), nullptr);
+ ProcessPendingNewline(emptyString, nullptr);
text_.append(character);
unsigned end_offset = text_.length();
@@ -178,7 +178,7 @@ void NGLayoutInlineItemsBuilder::Append(UChar character,
void NGLayoutInlineItemsBuilder::AppendAsOpaqueToSpaceCollapsing(
UChar character) {
if (has_pending_newline_)
- ProcessPendingNewline(emptyString(), nullptr);
+ ProcessPendingNewline(emptyString, nullptr);
text_.append(character);
unsigned end_offset = text_.length();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutQuote.cpp ('k') | third_party/WebKit/Source/core/loader/FormSubmission.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698