| Index: Source/core/dom/PositionIterator.cpp
|
| diff --git a/Source/core/dom/PositionIterator.cpp b/Source/core/dom/PositionIterator.cpp
|
| index c9b2ef078be69d274226878397bce36a792d0504..215689455a63656e1718dce626b7dac23dff9018 100644
|
| --- a/Source/core/dom/PositionIterator.cpp
|
| +++ b/Source/core/dom/PositionIterator.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "HTMLNames.h"
|
| #include "core/dom/Node.h"
|
| #include "core/editing/htmlediting.h"
|
| +#include "core/html/HTMLHtmlElement.h"
|
| #include "core/rendering/RenderBlock.h"
|
|
|
| namespace WebCore {
|
| @@ -159,7 +160,7 @@ bool PositionIterator::isCandidate() const
|
| if (isTableElement(m_anchorNode) || editingIgnoresContent(m_anchorNode))
|
| return (atStartOfNode() || atEndOfNode()) && !Position::nodeIsUserSelectNone(m_anchorNode->parentNode());
|
|
|
| - if (!m_anchorNode->hasTagName(htmlTag) && renderer->isBlockFlow()) {
|
| + if (!isHTMLHtmlElement(m_anchorNode) && renderer->isBlockFlow()) {
|
| if (toRenderBlock(renderer)->logicalHeight() || m_anchorNode->hasTagName(bodyTag)) {
|
| if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer))
|
| return atStartOfNode() && !Position::nodeIsUserSelectNone(m_anchorNode);
|
|
|