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

Unified Diff: Source/core/layout/compositing/CompositedSelectionBound.h

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactor WebSelection to align with Frame/VisibleSelection Created 5 years, 9 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/layout/compositing/CompositedSelectionBound.h
diff --git a/Source/core/layout/compositing/CompositedSelectionBound.h b/Source/core/layout/compositing/CompositedSelectionBound.h
index d9cc88a412fa983f32f4f8a587f8d281ceafb718..10d25af08ef0edc55256eef4c37301dcf4859672 100644
--- a/Source/core/layout/compositing/CompositedSelectionBound.h
+++ b/Source/core/layout/compositing/CompositedSelectionBound.h
@@ -37,26 +37,20 @@
namespace blink {
struct CompositedSelectionBound {
- enum Type {
- Caret,
- SelectionLeft,
- SelectionRight
- };
-
CompositedSelectionBound()
- : type(Caret)
- , layer(nullptr)
+ : layer(nullptr)
+ , isTextDirectionRTL(false)
{
}
- Type type;
-
// The structure describes the position of a caret in space of the GraphicsLayer the caret resides in.
// Where edgeTopInLayer is the top point of the caret, usually on the ascend line of the line box,
// and edgeBottomInLayer it the bottom point, on the baseline of the line box.
GraphicsLayer* layer;
FloatPoint edgeTopInLayer;
FloatPoint edgeBottomInLayer;
+
+ bool isTextDirectionRTL;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698