Title: [115439] trunk/Source/WebKit/chromium
Revision
115439
Author
[email protected]
Date
2012-04-27 09:29:13 -0700 (Fri, 27 Apr 2012)

Log Message

Unreviewed, rolling out r115400.
http://trac.webkit.org/changeset/115400
https://bugs.webkit.org/show_bug.cgi?id=84420

Broke unit tests.

* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::popupOpened):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::applyAutofillSuggestions):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (115438 => 115439)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-04-27 16:27:22 UTC (rev 115438)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-04-27 16:29:13 UTC (rev 115439)
@@ -1,3 +1,16 @@
+2012-04-27  Dimitri Glazkov  <[email protected]>
+
+        Unreviewed, rolling out r115400.
+        http://trac.webkit.org/changeset/115400
+        https://bugs.webkit.org/show_bug.cgi?id=84420
+
+        Broke unit tests.
+
+        * src/ChromeClientImpl.cpp:
+        (WebKit::ChromeClientImpl::popupOpened):
+        * src/WebViewImpl.cpp:
+        (WebKit::WebViewImpl::applyAutofillSuggestions):
+
 2012-04-27  Gavin Peters  <[email protected]>
 
         [Chromium] Remove Webkit/chromium/public/WebReferrerPolicy.h thunk.

Modified: trunk/Source/WebKit/chromium/src/ChromeClientImpl.cpp (115438 => 115439)


--- trunk/Source/WebKit/chromium/src/ChromeClientImpl.cpp	2012-04-27 16:27:22 UTC (rev 115438)
+++ trunk/Source/WebKit/chromium/src/ChromeClientImpl.cpp	2012-04-27 16:29:13 UTC (rev 115439)
@@ -779,20 +779,6 @@
                                    const IntRect& bounds,
                                    bool handleExternally)
 {
-    FrameView* view = m_webView->page()->mainFrame()->view();
-    IntRect visibleRect = view->visibleContentRect(true /* include scrollbars */);
-    // |bounds| is in screen coordinates, so make sure to convert it to content
-    // coordinates prior to comparing to |visibleRect|.
-    IntRect screenRect = bounds;
-    screenRect.setLocation(view->screenToContents(bounds.location()));
-    if (!visibleRect.contains(screenRect)) {
-        // If the popup will not be fully visible, we shouldn't show it at all.
-        // Among other things, this prevents users from being able to interact
-        // via the keyboard with an invisible popup.
-        m_webView->hidePopups();
-        return;
-    }
-
     if (!m_webView->client())
         return;
 

Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (115438 => 115439)


--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-04-27 16:27:22 UTC (rev 115438)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-04-27 16:29:13 UTC (rev 115439)
@@ -2783,8 +2783,8 @@
     if (m_autofillPopupShowing) {
         refreshAutofillPopup();
     } else {
+        m_autofillPopup->showInRect(focusedNode->getPixelSnappedRect(), focusedNode->ownerDocument()->view(), 0);
         m_autofillPopupShowing = true;
-        m_autofillPopup->showInRect(focusedNode->getPixelSnappedRect(), focusedNode->ownerDocument()->view(), 0);
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to