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

Unified Diff: third_party/WebKit/Source/core/editing/LayoutSelection.h

Issue 2913773002: [WIP][b:eae_mywip_paint] Paint Selection NG.
Patch Set: tmp Created 3 years, 6 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/editing/LayoutSelection.h
diff --git a/third_party/WebKit/Source/core/editing/LayoutSelection.h b/third_party/WebKit/Source/core/editing/LayoutSelection.h
index e309c5d33360a5a8dc56b3e11d89a09071ba4000..48b6c83deb7dc39cb080e86371d40dc013abdb49 100644
--- a/third_party/WebKit/Source/core/editing/LayoutSelection.h
+++ b/third_party/WebKit/Source/core/editing/LayoutSelection.h
@@ -103,6 +103,12 @@ class LayoutSelection final : public GarbageCollected<LayoutSelection> {
void InvalidatePaintForSelection();
void ClearSelection();
+ // TODO(yoichio): Returns pair<Union<NGOffset, DOMOffset>, Union<NGOffset,
+ // DOMOffset>>. Content of the Union is decided by if
+ // paint_range_.Start(End)LayoutObject() is NG or not. LayoutObject painter
+ // calliing this should know if the LayoutObject is NG and
+ // LayoutObject.SelectionState because SelectionStartEnd().first doesn't make
+ // sense for SelectionState::kEnd LayoutObject.
std::pair<int, int> SelectionStartEnd();
void OnDocumentShutdown();

Powered by Google App Engine
This is Rietveld 408576698