Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2067)

Unified Diff: content/renderer/render_view.cc

Issue 6902196: When start dragging event is detected, call hidePopups() to hide all popup windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Change to use acceptCurrentAutoFilled(). Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
diff --git a/content/renderer/render_view.cc b/content/renderer/render_view.cc
index 63c36b4f21837c3273be066e88f452dd857feadf..179b850bdb5ad358a3478575f5866b2b09f67077 100644
--- a/content/renderer/render_view.cc
+++ b/content/renderer/render_view.cc
@@ -1665,6 +1665,12 @@ void RenderView::startDragging(const WebDragData& data,
WebDragOperationsMask mask,
const WebImage& image,
const WebPoint& imageOffset) {
+ // We want to hide popups but don't want to clear filled filed.
+ if (webview()) {
+ webview()->hidePopups();
+ webview()->acceptCurrectAutoFilled();
Ilya Sherman 2011/05/07 09:07:10 You probably want to swap the order of these two l
honten.org 2011/05/09 02:30:32 Hmmm... Even if I change the order of the calling
Ilya Sherman 2011/05/09 07:40:05 As I mentioned on the WebKit bug, I don't fully un
+ }
+
#if WEBKIT_USING_SKIA
SkBitmap bitmap(image.getSkBitmap());
#elif WEBKIT_USING_CG
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698