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

Unified Diff: Source/core/editing/htmlediting.cpp

Issue 309993002: Make isEditablePosition to work with Position objects other than PositionIsOffsetInAnchor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-03T06:20:40 Created 6 years, 7 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
« no previous file with comments | « LayoutTests/editing/execCommand/format-block-with-uneditable-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/htmlediting.cpp
diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
index 6c7b309faf972a3ab3f1ef79fcc17fbb298bb8aa..8f6dc705a0a10a04d49eb72f9eef980eebb3b914 100644
--- a/Source/core/editing/htmlediting.cpp
+++ b/Source/core/editing/htmlediting.cpp
@@ -154,7 +154,7 @@ Node* lowestEditableAncestor(Node* node)
bool isEditablePosition(const Position& p, EditableType editableType, EUpdateStyle updateStyle)
{
- Node* node = p.deprecatedNode();
+ Node* node = p.parentAnchoredEquivalent().deprecatedNode();
Yuta Kitamura 2014/06/06 08:55:07 You should use anchorNode() instead of deprecatedN
yosin_UTC9 2014/06/06 09:26:11 Done.
if (!node)
return false;
if (updateStyle == UpdateStyle)
« no previous file with comments | « LayoutTests/editing/execCommand/format-block-with-uneditable-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698