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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2818703002: Shorten LayoutSelectionStartEnd() call stack (Closed)
Patch Set: rebase Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index d71a5142a60d78f03ea9400392f0953987b7f8a7..36c157898963ef7a9ab91a65703870c6e17a411b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1453,8 +1453,8 @@ Color LayoutObject::SelectionEmphasisMarkColor(
return SelectionColor(CSSPropertyWebkitTextEmphasisColor, global_paint_flags);
}
-void LayoutObject::SelectionStartEnd(int& spos, int& epos) const {
- View()->SelectionStartEnd(spos, epos);
+void LayoutObject::SelectionStartEnd(int& start_pos, int& end_pos) const {
+ GetFrame()->Selection().LayoutSelectionStartEnd(start_pos, end_pos);
}
// Called when an object that was floating or positioned becomes a normal flow
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698