[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
commit-queue at webkit.org
commit-queue at webkit.org
Wed Dec 22 13:57:09 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit e86d676e7c284359d7f484925f600150fa06a3a0
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Sep 30 08:50:48 2010 +0000
2010-09-30 Avi Drissman <avi at google.com>
Reviewed by Kenneth Russell.
[Chromium] Tabbing into page doesn't always select the first element
https://bugs.webkit.org/show_bug.cgi?id=46856
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setInitialFocus):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog
index 142301c..3badffa 100644
--- a/WebKit/chromium/ChangeLog
+++ b/WebKit/chromium/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-30 Avi Drissman <avi at google.com>
+
+ Reviewed by Kenneth Russell.
+
+ [Chromium] Tabbing into page doesn't always select the first element
+ https://bugs.webkit.org/show_bug.cgi?id=46856
+
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setInitialFocus):
+
2010-09-30 Alexey Marinichev <amarinichev at chromium.org>
Reviewed by Kenneth Russell.
diff --git a/WebKit/chromium/src/WebViewImpl.cpp b/WebKit/chromium/src/WebViewImpl.cpp
index c3df0c7..b415bf8 100644
--- a/WebKit/chromium/src/WebViewImpl.cpp
+++ b/WebKit/chromium/src/WebViewImpl.cpp
@@ -1481,6 +1481,10 @@ void WebViewImpl::setInitialFocus(bool reverse)
keyboardEvent.windowsKeyCode = 0x09;
PlatformKeyboardEventBuilder platformEvent(keyboardEvent);
RefPtr<KeyboardEvent> webkitEvent = KeyboardEvent::create(platformEvent, 0);
+
+ Frame* frame = page()->focusController()->focusedOrMainFrame();
+ if (Document* document = frame->document())
+ document->setFocusedNode(0);
page()->focusController()->setInitialFocus(
reverse ? FocusDirectionBackward : FocusDirectionForward,
webkitEvent.get());
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list