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

Unified Diff: Source/core/editing/FrameSelection.cpp

Issue 940373003: Rename RenderText to LayoutText (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge w/HEAD again Created 5 years, 10 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: Source/core/editing/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index e00509eccd468df8162b4a57bf1e91665d3367fd..ae59cb4c3d1cbe3c3b8bc9231bcc5f4693e6586c 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -59,6 +59,7 @@
#include "core/layout/HitTestResult.h"
#include "core/layout/Layer.h"
#include "core/layout/LayoutPart.h"
+#include "core/layout/LayoutText.h"
#include "core/layout/LayoutTheme.h"
#include "core/layout/LayoutView.h"
#include "core/layout/line/InlineTextBox.h"
@@ -68,7 +69,6 @@
#include "core/page/FrameTree.h"
#include "core/page/Page.h"
#include "core/page/SpatialNavigation.h"
-#include "core/rendering/RenderText.h"
#include "platform/SecureTextInput.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/graphics/GraphicsContext.h"
@@ -394,8 +394,8 @@ static Position updatePositionAfterAdoptingTextReplacement(const Position& posit
positionOffset = positionOffset - oldLength + newLength;
// Due to case folding (http://unicode.org/Public/UCD/latest/ucd/CaseFolding.txt),
- // RenderText length may be different from Text length. A correct implementation
- // would translate the RenderText offset to a Text offset; this is just a safety
+ // LayoutText length may be different from Text length. A correct implementation
+ // would translate the LayoutText offset to a Text offset; this is just a safety
// precaution to avoid offset values that run off the end of the Text.
if (positionOffset > node->length())
positionOffset = node->length();

Powered by Google App Engine
This is Rietveld 408576698