Summary: | [GTK] WidgetGtk setFocus can not access directly the widget in WK2 | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alejandro G. Castro <alex> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Attachments: |
|
Description
Alejandro G. Castro
2011-05-03 02:34:35 PDT
Created attachment 92056 [details]
Proposed patch
Comment on attachment 92056 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=92056&action=review Great stuff. > Source/WebCore/platform/gtk/WidgetGtk.cpp:69 > + Frame* frame = Frame::frameForWidget(this); > + if (frame) { This can just be: if (Frame* frame = Frame::frameForWidget(this)) { or an early return. > Source/WebCore/platform/gtk/WidgetGtk.cpp:71 > + Page* page = frame->page(); > + page->chrome()->focus(); Also should just be frame->page()->chrome()->focus(); Thanks for the comments, landed: http://trac.webkit.org/changeset/86058 |