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

Unified Diff: Source/core/dom/Position.cpp

Issue 421293004: Move Node::enclosingBlockFlowElement() to htmlediting.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: Source/core/dom/Position.cpp
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp
index f40b584c220fcac922d3a32ff2eba68369ba0b9e..77a0917607d47f16916ac8a9f506f64e9160cbf2 100644
--- a/Source/core/dom/Position.cpp
+++ b/Source/core/dom/Position.cpp
@@ -948,7 +948,7 @@ bool Position::rendersInDifferentPosition(const Position &pos) const
if (isHTMLBRElement(*pos.deprecatedNode()) && isCandidate())
return true;
- if (deprecatedNode()->enclosingBlockFlowElement() != pos.deprecatedNode()->enclosingBlockFlowElement())
+ if (enclosingBlockFlowElement(*deprecatedNode()) != enclosingBlockFlowElement(*pos.deprecatedNode()))
leviw_travelin_and_unemployed 2014/07/28 21:39:56 !inSameContainingBlockFlowElement(*deprecatedNode(
leviw_travelin_and_unemployed 2014/07/28 21:39:56 !inSameContainingBlockFlowElement(*deprecatedNode(
Inactive 2014/07/28 21:47:11 Done.
return true;
if (deprecatedNode()->isTextNode() && !inRenderedText())

Powered by Google App Engine
This is Rietveld 408576698