Index: Source/core/html/HTMLTextFormControlElement.cpp |
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp |
index 0ce84dd7c58912af527e853afdf3475802d1bbc2..786bca4fe8e154c9fe981870bb8ea3877a59eca7 100644 |
--- a/Source/core/html/HTMLTextFormControlElement.cpp |
+++ b/Source/core/html/HTMLTextFormControlElement.cpp |
@@ -156,24 +156,6 @@ void HTMLTextFormControlElement::updatePlaceholderVisibility(bool placeholderVal |
placeholder->setInlineStyleProperty(CSSPropertyVisibility, placeholderShouldBeVisible() ? CSSValueVisible : CSSValueHidden); |
} |
-void HTMLTextFormControlElement::fixPlaceholderRenderer(HTMLElement* placeholder, HTMLElement* siblingElement) |
-{ |
- // FIXME: We should change the order of DOM nodes. But it makes an assertion |
- // failure in editing code. |
- if (!placeholder || !placeholder->renderer()) |
- return; |
- RenderObject* placeholderRenderer = placeholder->renderer(); |
- RenderObject* siblingRenderer = siblingElement->renderer(); |
- if (!siblingRenderer) |
- return; |
- if (placeholderRenderer->nextSibling() == siblingRenderer) |
- return; |
- RenderObject* parentRenderer = placeholderRenderer->parent(); |
- ASSERT(siblingRenderer->parent() == parentRenderer); |
- parentRenderer->removeChild(placeholderRenderer); |
- parentRenderer->addChild(placeholderRenderer, siblingRenderer); |
-} |
- |
void HTMLTextFormControlElement::setSelectionStart(int start) |
{ |
setSelectionRange(start, max(start, selectionEnd()), selectionDirection()); |