Bug 48407

Summary: Port ContextMenuItemWin.cpp to WinCE
Product: WebKit Reporter: Patrick R. Gansterer <paroga>
Component: PlatformAssignee: Patrick R. Gansterer <paroga>
Status: RESOLVED FIXED    
Severity: Normal CC: aroben, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Attachments:
Description Flags
Patch
aroben: review-, aroben: commit-queue-
Patch none

Description Patrick R. Gansterer 2010-10-27 03:00:57 PDT
see patch
Comment 1 Patrick R. Gansterer 2010-10-27 04:41:06 PDT
Created attachment 72005 [details]
Patch
Comment 2 Adam Roben (:aroben) 2010-10-27 04:48:22 PDT
Comment on attachment 72005 [details]
Patch

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

> WebCore/platform/win/ContextMenuItemWin.cpp:73
> +#if OS(WINCE)
> +    m_platformDescription->fMask = MIIM_TYPE;
> +#else
>      m_platformDescription->fMask = MIIM_FTYPE;
> +#endif

Maybe we could finesse this a little more by using a constant that is defined to MIIM_TYPE on WinCE and MIIM_FTYPE on other versions of Windows? Or we could define MIIM_FTYPE on WinCE.

> WebCore/platform/win/ContextMenuItemWin.cpp:88
>      if (subMenu) {
> -        m_platformDescription->fMask |= MIIM_STRING | MIIM_SUBMENU;
> +        m_platformDescription->fMask |= MIIM_SUBMENU;
>          m_platformDescription->hSubMenu = subMenu->platformDescription();
>      } else
> -        m_platformDescription->fMask |= MIIM_STRING | MIIM_ID;
> +        m_platformDescription->fMask |= MIIM_ID;
> +
> +#if !OS(WINCE)
> +    m_platformDescription->fMask |= MIIM_STRING;
> +#endif

…and we could finesse this more by defining MIIM_STRING to 0 on WinCE.
Comment 3 Patrick R. Gansterer 2010-10-27 08:09:19 PDT
Created attachment 72036 [details]
Patch

(In reply to comment #2)
> Maybe we could finesse this a little more...
Not sure if it's better now, but it's ok for me too. ;-)
Comment 4 WebKit Commit Bot 2010-10-28 14:19:50 PDT
The commit-queue encountered the following flaky tests while processing attachment 72036 [details]:

http/tests/appcache/foreign-iframe-main.html
http/tests/inspector/console-resource-errors.html

Please file bugs against the tests.  These tests were authored by ap@webkit.org, caseq@chromium.org, and eric@webkit.org.  The commit-queue is continuing to process your patch.
Comment 5 WebKit Commit Bot 2010-10-28 14:42:10 PDT
Comment on attachment 72036 [details]
Patch

Clearing flags on attachment: 72036

Committed r70812: <http://trac.webkit.org/changeset/70812>
Comment 6 WebKit Commit Bot 2010-10-28 14:42:15 PDT
All reviewed patches have been landed.  Closing bug.