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

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

Issue 602423002: Mixing content editable and non-editable in direction RTL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per codereview comment Created 6 years, 3 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 04c181c5199020ae4c312cf7dcf5466b32ad776a..35afcb8f626c2820e947d2dcb2d7916846f9c1a7 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -477,7 +477,7 @@ void FrameSelection::updateSelectionIfNeeded(const Position& base, const Positio
TextDirection FrameSelection::directionOfEnclosingBlock()
{
- return blink::directionOfEnclosingBlock(m_selection.extent());
+ return blink::isEnclosingBoxHasLeftToRightDirection(m_selection.extent()) ? LTR : RTL;
}
TextDirection FrameSelection::directionOfSelection()

Powered by Google App Engine
This is Rietveld 408576698