Bug 57353

Summary: Autocorrection panel isn't positioned correctly in Safari (mac) when the zooming is not 1x.
Product: WebKit Reporter: Jia Pu <jiapu.mail>
Component: New BugsAssignee: Jia Pu <jiapu.mail>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue, ddavidso, eric, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
Attachments:
Description Flags
Patch (v1)
none
Patch (v2) none

Description Jia Pu 2011-03-29 09:56:31 PDT
When Cmd-+/- is applied to the page being displayed in Safari window, autocorrection panel is displayed at incorrect location.
<rdar://problem/9163983>
Comment 1 Jia Pu 2011-03-29 14:38:13 PDT
Created attachment 87412 [details]
Patch (v1)
Comment 2 Darin Adler 2011-03-29 15:27:07 PDT
Comment on attachment 87412 [details]
Patch (v1)

View in context: https://bugs.webkit.org/attachment.cgi?id=87412&action=review

> Source/WebCore/page/Frame.cpp:948
> +    Editor* editor = this->editor();
> +    if (editor)
> +        editor->dismissCorrectionPanel(ReasonForDismissingCorrectionPanelIgnored);

It is incorrect to null-check editor. The Editor is actually a data member of Frame, and so can never be null.
Comment 3 Jia Pu 2011-03-29 15:53:53 PDT
Created attachment 87421 [details]
Patch (v2)
Comment 4 WebKit Commit Bot 2011-03-30 19:08:51 PDT
Comment on attachment 87421 [details]
Patch (v2)

Clearing flags on attachment: 87421

Committed r82533: <http://trac.webkit.org/changeset/82533>
Comment 5 WebKit Commit Bot 2011-03-30 19:08:55 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 WebKit Review Bot 2011-03-30 20:35:42 PDT
http://trac.webkit.org/changeset/82533 might have broken GTK Linux 32-bit Debug