diff options
Diffstat (limited to 'WebCore/editing/DeleteButtonController.cpp')
-rw-r--r-- | WebCore/editing/DeleteButtonController.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/editing/DeleteButtonController.cpp b/WebCore/editing/DeleteButtonController.cpp index 725c01d..c154426 100644 --- a/WebCore/editing/DeleteButtonController.cpp +++ b/WebCore/editing/DeleteButtonController.cpp @@ -187,7 +187,7 @@ void DeleteButtonController::respondToChangedSelection(const VisibleSelection& o void DeleteButtonController::createDeletionUI() { RefPtr<HTMLDivElement> container = new HTMLDivElement(divTag, m_target->document()); - container->setId(containerElementIdentifier); + container->setAttribute(idAttr, containerElementIdentifier); CSSMutableStyleDeclaration* style = container->getInlineStyleDecl(); style->setProperty(CSSPropertyWebkitUserDrag, CSSValueNone); @@ -202,7 +202,7 @@ void DeleteButtonController::createDeletionUI() style->setProperty(CSSPropertyLeft, "0"); RefPtr<HTMLDivElement> outline = new HTMLDivElement(divTag, m_target->document()); - outline->setId(outlineElementIdentifier); + outline->setAttribute(idAttr, outlineElementIdentifier); const int borderWidth = 4; const int borderRadius = 6; @@ -225,7 +225,7 @@ void DeleteButtonController::createDeletionUI() return; RefPtr<DeleteButton> button = new DeleteButton(m_target->document()); - button->setId(buttonElementIdentifier); + button->setAttribute(idAttr, buttonElementIdentifier); const int buttonWidth = 30; const int buttonHeight = 30; @@ -350,7 +350,7 @@ void DeleteButtonController::deleteTarget() // Because the deletion UI only appears when the selection is entirely // within the target, we unconditionally update the selection to be // a caret where the target had been. - Position pos = positionBeforeNode(element.get()); + Position pos = positionInParentBeforeNode(element.get()); applyCommand(RemoveNodeCommand::create(element.release())); m_frame->selection()->setSelection(VisiblePosition(pos)); } |