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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp

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/editing/serializers/Serialization.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index c5d16388a126b1dcce635e01da7be270af75d289..9447499b7940d2471adcabfa4a3267dd7afd2db8 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -261,18 +261,18 @@ String CreateMarkupAlgorithm<Strategy>::createMarkup(
EAbsoluteURLs shouldResolveURLs,
Node* constrainingAncestor) {
if (startPosition.isNull() || endPosition.isNull())
- return emptyString();
+ return emptyString;
RELEASE_ASSERT(startPosition.compareTo(endPosition) <= 0);
bool collapsed = startPosition == endPosition;
if (collapsed)
- return emptyString();
+ return emptyString;
Node* commonAncestor =
Strategy::commonAncestor(*startPosition.computeContainerNode(),
*endPosition.computeContainerNode());
if (!commonAncestor)
- return emptyString();
+ return emptyString;
Document* document = startPosition.document();

Powered by Google App Engine
This is Rietveld 408576698