Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index 72e1ad7579147b72a7abf9b457e4f6d57bb82151..9334aa98e5069165c3436646e806b542776931fd 100644 |
--- a/Source/core/dom/Position.cpp |
+++ b/Source/core/dom/Position.cpp |
@@ -55,11 +55,11 @@ using namespace HTMLNames; |
static Node* nextRenderedEditable(Node* node) |
{ |
while ((node = node->nextLeafNode())) { |
- if (!node->rendererIsEditable()) |
- continue; |
RenderObject* renderer = node->renderer(); |
if (!renderer) |
continue; |
+ if (!node->rendererIsEditable()) |
+ continue; |
if ((renderer->isBox() && toRenderBox(renderer)->inlineBoxWrapper()) || (renderer->isText() && toRenderText(renderer)->firstTextBox())) |
return node; |
} |
@@ -69,11 +69,11 @@ static Node* nextRenderedEditable(Node* node) |
static Node* previousRenderedEditable(Node* node) |
{ |
while ((node = node->previousLeafNode())) { |
- if (!node->rendererIsEditable()) |
- continue; |
RenderObject* renderer = node->renderer(); |
if (!renderer) |
continue; |
+ if (!node->rendererIsEditable()) |
+ continue; |
if ((renderer->isBox() && toRenderBox(renderer)->inlineBoxWrapper()) || (renderer->isText() && toRenderText(renderer)->firstTextBox())) |
return node; |
} |