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

Side by Side Diff: sky/engine/core/editing/FrameSelection.h

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 enum DirectoinalOption { 86 enum DirectoinalOption {
87 NonDirectional, 87 NonDirectional,
88 Directional 88 Directional
89 }; 89 };
90 enum ResetCaretBlinkOption { 90 enum ResetCaretBlinkOption {
91 None, 91 None,
92 ResetCaretBlink 92 ResetCaretBlink
93 }; 93 };
94 94
95 Element* rootEditableElement() const { return m_selection.rootEditableElemen t(); } 95 Element* rootEditableElement() const { return m_selection.rootEditableElemen t(); }
96 Element* rootEditableElementOrDocumentElement() const;
97 ContainerNode* rootEditableElementOrTreeScopeRootNode() const; 96 ContainerNode* rootEditableElementOrTreeScopeRootNode() const;
98 97
99 bool hasEditableStyle() const { return m_selection.hasEditableStyle(); } 98 bool hasEditableStyle() const { return m_selection.hasEditableStyle(); }
100 bool isContentEditable() const { return m_selection.isContentEditable(); } 99 bool isContentEditable() const { return m_selection.isContentEditable(); }
101 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi table(); } 100 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi table(); }
102 101
103 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso rAlignOnScroll = AlignCursorOnScrollIfNeeded); 102 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso rAlignOnScroll = AlignCursorOnScrollIfNeeded);
104 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered); 103 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered);
105 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered); 104 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered);
106 105
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 } 284 }
286 } // namespace blink 285 } // namespace blink
287 286
288 #ifndef NDEBUG 287 #ifndef NDEBUG
289 // Outside the WebCore namespace for ease of invocation from gdb. 288 // Outside the WebCore namespace for ease of invocation from gdb.
290 void showTree(const blink::FrameSelection&); 289 void showTree(const blink::FrameSelection&);
291 void showTree(const blink::FrameSelection*); 290 void showTree(const blink::FrameSelection*);
292 #endif 291 #endif
293 292
294 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_ 293 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698