diff options
Diffstat (limited to 'WebCore/platform/mac/WidgetMac.mm')
-rw-r--r-- | WebCore/platform/mac/WidgetMac.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/mac/WidgetMac.mm b/WebCore/platform/mac/WidgetMac.mm index 1aad76f..37c9e9f 100644 --- a/WebCore/platform/mac/WidgetMac.mm +++ b/WebCore/platform/mac/WidgetMac.mm @@ -105,8 +105,11 @@ Widget::~Widget() } // FIXME: Should move this to Chrome; bad layering that this knows about Frame. -void Widget::setFocus() +void Widget::setFocus(bool focused) { + if (!focused) + return; + Frame* frame = Frame::frameForWidget(this); if (!frame) return; |