Changeset 62770 in webkit
- Timestamp:
- Jul 8, 2010 1:49:01 AM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r62754 r62770 1 2010-07-08 David Holloway <dhollowa@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [chromium] Exposes WebNode::unwrap() and WebNode::constUnwrap() for 6 use by other code in WebKit/chromium/src. 7 8 Specific use of these methods is made in WebFrameImpl.cpp. This is 9 preferred to the cast operator call that was happening prior to this 10 change. 11 12 https://bugs.webkit.org/show_bug.cgi?id=41477 13 14 * public/WebNode.h: 15 * src/WebFrameImpl.cpp: 16 (WebKit::WebFrameImpl::registerPasswordListener): 17 (WebKit::WebFrameImpl::notifiyPasswordListenerOfAutocomplete): 18 (WebKit::WebFrameImpl::getPasswordListener): 19 * src/WebFrameImpl.h: 20 1 21 2010-07-07 Pavel Podivilov <podivilov@chromium.org> 2 22 -
trunk/WebKit/chromium/public/WebNode.h
r62351 r62770 125 125 #endif 126 126 127 protected:128 127 #if WEBKIT_IMPLEMENTATION 129 128 template<typename T> T* unwrap() … … 138 137 #endif 139 138 139 protected: 140 140 WebPrivatePtr<WebCore::Node> m_private; 141 141 }; -
trunk/WebKit/chromium/src/WebFrameImpl.cpp
r62743 r62770 1980 1980 WebPasswordAutocompleteListener* listener) 1981 1981 { 1982 RefPtr<HTMLInputElement> element = inputElement.operator PassRefPtr<HTMLInputElement>();1982 RefPtr<HTMLInputElement> element(inputElement.unwrap<HTMLInputElement>()); 1983 1983 if (!m_passwordListeners.add(element, listener).second) { 1984 1984 delete listener; … … 1991 1991 const WebInputElement& inputElement) 1992 1992 { 1993 RefPtr<HTMLInputElement> element = inputElement.operator PassRefPtr<HTMLInputElement>();1994 WebPasswordAutocompleteListener* listener = getPasswordListener(element .get());1993 const HTMLInputElement* element = inputElement.constUnwrap<HTMLInputElement>(); 1994 WebPasswordAutocompleteListener* listener = getPasswordListener(element); 1995 1995 // Password listeners need to autocomplete other fields that depend on the 1996 1996 // input element with autofill suggestions. … … 2000 2000 2001 2001 WebPasswordAutocompleteListener* WebFrameImpl::getPasswordListener( 2002 HTMLInputElement* inputElement)2003 { 2004 return m_passwordListeners.get(RefPtr<HTMLInputElement>( inputElement));2002 const HTMLInputElement* inputElement) 2003 { 2004 return m_passwordListeners.get(RefPtr<HTMLInputElement>(const_cast<HTMLInputElement*>(inputElement))); 2005 2005 } 2006 2006 -
trunk/WebKit/chromium/src/WebFrameImpl.h
r62743 r62770 237 237 // Note that the returned listener is owner by the WebFrameImpl and should not 238 238 // be kept around as it is deleted when the page goes away. 239 WebPasswordAutocompleteListener* getPasswordListener( WebCore::HTMLInputElement*);239 WebPasswordAutocompleteListener* getPasswordListener(const WebCore::HTMLInputElement*); 240 240 241 241 WebFrameClient* client() const { return m_client; }
Note: See TracChangeset
for help on using the changeset viewer.