Index: Source/WebKit/chromium/src/DateTimeChooserImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/DateTimeChooserImpl.cpp (revision 135211) |
+++ Source/WebKit/chromium/src/DateTimeChooserImpl.cpp (working copy) |
@@ -64,6 +64,11 @@ |
m_popup = m_chromeClient->openPagePopup(this, m_parameters.anchorRectInRootView); |
} |
+PassRefPtr<DateTimeChooserImpl> DateTimeChooserImpl::create(ChromeClientImpl* chromeClient, WebCore::DateTimeChooserClient* client, const WebCore::DateTimeChooserParameters& parameters) |
+{ |
+ return adoptRef(new DateTimeChooserImpl(chromeClient, client, parameters)); |
+} |
+ |
DateTimeChooserImpl::~DateTimeChooserImpl() |
{ |
} |
@@ -150,6 +155,7 @@ |
void DateTimeChooserImpl::setValueAndClosePopup(int numValue, const String& stringValue) |
{ |
+ RefPtr<DateTimeChooserImpl> protector(this); |
if (numValue >= 0) |
m_client->didChooseValue(stringValue); |
endChooser(); |