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

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: 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
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/HTMLInterchange.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index 9bc5740c92ee76d72ace6379821dd40aac5f9910..4e2114c6204263f36ff05d08c74db291d5d47282 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();
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/HTMLInterchange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698