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

Unified Diff: sky/engine/core/editing/htmlediting.cpp

Issue 772743004: Remove more Node API. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/editing/DeleteSelectionCommand.cpp ('k') | sky/engine/core/events/EventDispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/htmlediting.cpp
diff --git a/sky/engine/core/editing/htmlediting.cpp b/sky/engine/core/editing/htmlediting.cpp
index 46a31fb8f406ba93b05b24c3003a06bddf0acb84..0734dce8092784f530e48e910568c0866cc4ad87 100644
--- a/sky/engine/core/editing/htmlediting.cpp
+++ b/sky/engine/core/editing/htmlediting.cpp
@@ -756,7 +756,7 @@ bool isMailHTMLBlockquoteElement(const Node* node)
int caretMinOffset(const Node* n)
{
RenderObject* r = n->renderer();
- ASSERT(!n->isCharacterDataNode() || !r || r->isText()); // FIXME: This was a runtime check that seemingly couldn't fail; changed it to an assertion for now.
+ ASSERT(!n->isTextNode() || !r || r->isText()); // FIXME: This was a runtime check that seemingly couldn't fail; changed it to an assertion for now.
return r ? r->caretMinOffset() : 0;
}
« no previous file with comments | « sky/engine/core/editing/DeleteSelectionCommand.cpp ('k') | sky/engine/core/events/EventDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698