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

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

Issue 2952983002: Make Position::FirstPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-23T10:37:43 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/serializers/StyledMarkupAccumulator.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/StyledMarkupAccumulator.cpp b/third_party/WebKit/Source/core/editing/serializers/StyledMarkupAccumulator.cpp
index 09ba1ab62568d3632466c4943132526bda996311..a0731483c1c7165c7a6e858c8fbb997a03985e83 100644
--- a/third_party/WebKit/Source/core/editing/serializers/StyledMarkupAccumulator.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/StyledMarkupAccumulator.cpp
@@ -115,7 +115,7 @@ void StyledMarkupAccumulator::AppendTextWithInlineStyle(
AppendText(text);
} else {
const bool use_rendered_text = !EnclosingElementWithTag(
- Position::FirstPositionInNode(&text), selectTag);
+ Position::FirstPositionInNode(text), selectTag);
String content =
use_rendered_text ? RenderedText(text) : StringValueForRange(text);
StringBuilder buffer;

Powered by Google App Engine
This is Rietveld 408576698