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

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

Issue 2616623002: Do not send redundant selectionchange-events (decouple focus) (Closed)
Patch Set: Skip isSelectionInDocument(). Use SelectionInFlatTree. Don't change EditorCommand. Created 3 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: third_party/WebKit/Source/core/editing/EditingUtilities.h
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.h b/third_party/WebKit/Source/core/editing/EditingUtilities.h
index b4505d04be5767bb4d276fab831df0481e7c8d88..e968cf8280accb772c912d5e887e835f71804e2c 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.h
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.h
@@ -60,6 +60,7 @@ enum class DeleteDirection {
class Document;
class Element;
+class LocalFrame;
class HTMLElement;
class HTMLSpanElement;
class Node;
@@ -81,6 +82,7 @@ CORE_EXPORT bool hasEditableStyle(const Node&);
CORE_EXPORT bool hasRichlyEditableStyle(const Node&);
CORE_EXPORT bool isRootEditableElement(const Node&);
CORE_EXPORT Element* rootEditableElement(const Node&);
+bool selectionHasFocus(const LocalFrame&, const SelectionInFlatTree&);
Element* rootEditableElementOf(const Position&);
Element* rootEditableElementOf(const PositionInFlatTree&);
Element* rootEditableElementOf(const VisiblePosition&);

Powered by Google App Engine
This is Rietveld 408576698