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

Unified Diff: third_party/WebKit/Source/core/exported/WebSelection.cpp

Issue 2883793003: Move detached files from web/ to (core/modules)/exported. (Closed)
Patch Set: Created 3 years, 7 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/exported/WebSelection.cpp
diff --git a/third_party/WebKit/Source/web/WebSelection.cpp b/third_party/WebKit/Source/core/exported/WebSelection.cpp
similarity index 97%
rename from third_party/WebKit/Source/web/WebSelection.cpp
rename to third_party/WebKit/Source/core/exported/WebSelection.cpp
index 5b4582764e21778fb96f9bc5d3fe3760575b61bb..1992cd9b0551f557c13cc675e9fcc4e521a04953 100644
--- a/third_party/WebKit/Source/web/WebSelection.cpp
+++ b/third_party/WebKit/Source/core/exported/WebSelection.cpp
@@ -19,12 +19,13 @@ static WebSelectionBound GetWebSelectionBound(
WebSelectionBound::Type type = WebSelectionBound::kCaret;
if (selection.type == kRangeSelection) {
- if (is_start)
+ if (is_start) {
type = bound.is_text_direction_rtl ? WebSelectionBound::kSelectionRight
: WebSelectionBound::kSelectionLeft;
- else
+ } else {
type = bound.is_text_direction_rtl ? WebSelectionBound::kSelectionLeft
: WebSelectionBound::kSelectionRight;
+ }
}
WebSelectionBound result(type);

Powered by Google App Engine
This is Rietveld 408576698