Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index 4ba18fea75261c663ba6457b75a51f592ced195a..b0a1c690400e7a65882cf808e81a0fc2f47c5ea2 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -71,7 +71,7 @@ PassRefPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstructor(Document |
{ |
RefPtr<HTMLOptionElement> element = adoptRef(new HTMLOptionElement(optionTag, document)); |
- RefPtr<Text> text = Text::create(&document, data.isNull() ? "" : data); |
+ RefPtr<Text> text = Text::create(document, data.isNull() ? "" : data); |
element->appendChild(text.release(), es); |
if (es.hadException()) |
@@ -145,7 +145,7 @@ void HTMLOptionElement::setText(const String &text, ExceptionState& es) |
toText(child)->setData(text); |
else { |
removeChildren(); |
- appendChild(Text::create(&document(), text), es); |
+ appendChild(Text::create(document(), text), es); |
} |
if (selectIsMenuList && select->selectedIndex() != oldSelectedIndex) |