WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED LATER
27543
Add platform/wince/ files for WINCE port
https://bugs.webkit.org/show_bug.cgi?id=27543
Summary
Add platform/wince/ files for WINCE port
Yong Li
Reported
2009-07-22 08:49:03 PDT
patch file will be followed
Attachments
files for WINCE port in platform/wince
(195.02 KB, patch)
2009-07-22 09:25 PDT
,
Yong Li
manyoso
: review-
Details
Formatted Diff
Diff
part 1 (not including ScrollView Widget and ScrollBar files)
(95.10 KB, patch)
2009-07-22 12:43 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
part 2 (ScrollView, Widget, ScrollBar files)
(99.48 KB, patch)
2009-07-22 12:44 PDT
,
Yong Li
staikos
: review-
Details
Formatted Diff
Diff
1) Clipboard
(18.73 KB, patch)
2009-07-30 13:29 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
2) ScrollView
(60.21 KB, patch)
2009-07-30 13:30 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
3) Widget, Scrollbar
(39.87 KB, patch)
2009-07-30 13:30 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
4) SharedBuffer
(12.75 KB, patch)
2009-07-30 13:31 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
5) ContextMenu
(12.97 KB, patch)
2009-07-30 13:31 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
6) SharedTimer and SystemTime
(5.96 KB, patch)
2009-07-30 13:32 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
7) KeygenWince
(4.64 KB, patch)
2009-07-30 13:33 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
8) Other
(40.06 KB, patch)
2009-07-30 13:33 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
1) Clipboard
(17.31 KB, patch)
2009-08-08 10:47 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
1) Clipboard
(17.31 KB, patch)
2009-08-08 10:50 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
1) Clipboard
(17.32 KB, patch)
2009-08-08 10:53 PDT
,
Yong Li
staikos
: review-
Details
Formatted Diff
Diff
2) ScrollView
(60.68 KB, patch)
2009-08-08 10:58 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
3) Scrollbar & Widget
(40.58 KB, patch)
2009-08-08 11:02 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
4) SharedBuffer & OptimizedBuffer
(13.35 KB, patch)
2009-08-08 11:07 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
5) ContextMenu
(13.50 KB, patch)
2009-08-08 11:12 PDT
,
Yong Li
staikos
: review-
Details
Formatted Diff
Diff
6) SharedTimer & SystemTime
(6.50 KB, patch)
2009-08-08 11:16 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
7) Keygen (Security)
(5.11 KB, patch)
2009-08-08 11:20 PDT
,
Yong Li
staikos
: review-
Details
Formatted Diff
Diff
8) Pasteboard & SearchPopupMenu
(40.06 KB, patch)
2009-08-08 11:25 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
8) Pasteboard & SearchPopupMenu
(12.90 KB, patch)
2009-08-08 11:30 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
9) MIMETypeRegistry
(5.48 KB, patch)
2009-08-08 11:32 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
10) Cursor
(5.38 KB, patch)
2009-08-08 11:36 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
11) FileSystem and FileChooser
(12.15 KB, patch)
2009-08-08 11:38 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
12) Other (simple stubs to make it build)
(7.15 KB, patch)
2009-08-08 11:41 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
7) Keygen (Security)
(5.11 KB, patch)
2009-08-11 14:10 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
7) KeyGen (modified)
(4.35 KB, patch)
2009-08-11 15:17 PDT
,
Yong Li
staikos
: review-
Details
Formatted Diff
Diff
7) KeygenWince.cpp fixed a bug
(4.30 KB, patch)
2009-08-12 11:13 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
5) ContextMenu (modified)
(13.43 KB, patch)
2009-08-12 12:35 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
1) Clipboard (modified)
(17.33 KB, patch)
2009-08-12 12:52 PDT
,
Yong Li
no flags
Details
Formatted Diff
Diff
Show Obsolete
(19)
View All
Add attachment
proposed patch, testcase, etc.
Yong Li
Comment 1
2009-07-22 09:25:15 PDT
Created
attachment 33265
[details]
files for WINCE port in platform/wince I have used cpplint to check coding style errors and fixed them.
Adam Treat
Comment 2
2009-07-22 11:54:38 PDT
Comment on
attachment 33265
[details]
files for WINCE port in platform/wince
> +#include "CString.h" > +#include "DocumentFragment.h" > +#include "KURL.h" > +#include "PlatformString.h" > +#include "TextEncoding.h" > +#include "markup.h"
Alphabetical sorting problem. Is this a bug in cpplint with capitalization?
> +static String extractURL(const String &inURL, String* title)
Decoration of 'const String &inURL' is wrong. Another cpplint error?
> + String url = inURL; > + int splitLoc = url.find('\n'); > + if (splitLoc > 0) {
Minor nit: splitLoc should be spelled out fully: splitLocation.
> + if (title) > + *title = url.substring(splitLoc+1);
Space between splitLoc and 1. Rule #2 of spacing.
> +//Firefox text/html > +static FORMATETC* texthtmlFormat() > +{ > + static UINT cf = RegisterClipboardFormat(L"text/html"); > + static FORMATETC texthtmlFormat = {cf, 0, DVASPECT_CONTENT, -1, TYMED_HGLOBAL}; > + return &texthtmlFormat; > +}
Should be 'textHTMLFormat()' I believe. What is the Firefox comment for?
> + HGLOBAL cbData = GlobalAlloc(GPTR, size * sizeof(UChar));
Should be clipboardData or so.
> + // calculate offsets > + const unsigned UINT_MAXdigits = 10; // number of digits in UINT_MAX in base 10 > + unsigned startHTMLOffset = cf_html.length() + startHTML.length() + endHTML.length() + startFragment.length() + endFragment.length() + (shouldFillSourceURL ? sourceURL.length() + srcURL.length() : 0) + (4*UINT_MAXdigits);
Space around '4*UINT_MAXdigits'.
> +String getURL(IDataObject* dataObject, bool& success, String* title) > +{ > + return String(); > +}
Compiler doesn't complain of unused arguments?
> +#endif // ClipboardWin_h
Should be // ClipboardWince_h I think.
> +void ContextMenuItem::setSubMenu(ContextMenu* subMenu) > +{ > + if (m_platformDescription) { > + if (m_platformDescription->subMenu != subMenu->platformDescription()) > + delete m_platformDescription->subMenu; > + m_platformDescription->subMenu = subMenu->releasePlatformDescription(); > + } > +}
Early return please.
> +void ContextMenuItem::setChecked(bool checked) > +{ > + if (m_platformDescription) { > + if (checked) > + m_platformDescription->state |= PlatformMenuItemDescriptionType::CheckedState; > + else > + m_platformDescription->state &= ~PlatformMenuItemDescriptionType::CheckedState; > + } > +}
Early return please.
> +void ContextMenuItem::setEnabled(bool enabled) > +{ > + if (m_platformDescription) { > + if (enabled) > + m_platformDescription->state |= PlatformMenuItemDescriptionType::EnabledState; > + else > + m_platformDescription->state &= ~PlatformMenuItemDescriptionType::EnabledState; > + } > +}
Early return please.
> +PlatformMenuDescriptionType::PlatformMenuDescriptionType() > +: hMenu(::CreatePopupMenu()) > +, itemCount(0) > +{ > +}
Needs indentation of member variable initialization.
> + if (desc->type == SeparatorType) { > + flags |= MF_SEPARATOR; > + } else {
One line if clause...
> +#if 0 > + if (!m_platformDescription) > + return; > + > + // FIXME: the Windows version did this, is it necessary? > + MENUINFO menuInfo = {0}; > + menuInfo.cbSize = sizeof(MENUINFO); > + menuInfo.fMask = MIM_STYLE; > + ::GetMenuInfo(m_platformDescription, &menuInfo); > + menuInfo.fMask = MIM_STYLE; > + menuInfo.dwStyle |= MNS_NOTIFYBYPOS; > + ::SetMenuInfo(m_platformDescription, &menuInfo); > +#endif
--commented out code Going to stop there. For the next iteration can you break it up in the following way? Patch 1: * platform/wince/ClipboardUtilitiesWince.cpp: Added. * platform/wince/ClipboardWince.cpp: Added. * platform/wince/ClipboardWince.h: Added. * platform/wince/ContextMenuItemWince.cpp: Added. * platform/wince/ContextMenuWince.cpp: Added. * platform/wince/CursorWince.cpp: Added. * platform/wince/DragDataWince.cpp: Added. * platform/wince/DragImageWince.cpp: Added. * platform/wince/EditorWince.cpp: Added. * platform/wince/FileChooserWince.cpp: Added. * platform/wince/FileSystemWince.cpp: Added. * platform/wince/KURLWince.cpp: Added. * platform/wince/KeygenWince.cpp: Added. * platform/wince/MIMETypeRegistryWince.cpp: Added. * platform/wince/OptimizedBuffer.cpp: Added. * platform/wince/OptimizedBuffer.h: Added. * platform/wince/PasteboardWince.cpp: Added. * platform/wince/SearchPopupMenuWince.cpp: Added. * platform/wince/SharedBuffer.cpp: Added. * platform/wince/SharedTimerWince.cpp: Added. * platform/wince/SystemTimeWince.cpp: Added. Patch 2: The rest of the ScrollView/Widget related files? Thanks, Adam I Indent as above. t
Yong Li
Comment 3
2009-07-22 12:43:38 PDT
Created
attachment 33281
[details]
part 1 (not including ScrollView Widget and ScrollBar files)
Yong Li
Comment 4
2009-07-22 12:44:16 PDT
Created
attachment 33282
[details]
part 2 (ScrollView, Widget, ScrollBar files)
George Staikos
Comment 5
2009-07-30 11:30:06 PDT
Comment on
attachment 33282
[details]
part 2 (ScrollView, Widget, ScrollBar files) No changelog. Also is this style checked? I didn't notice any issues so far but it's a big patch.
Yong Li
Comment 6
2009-07-30 11:38:35 PDT
(In reply to
comment #5
)
> (From update of
attachment 33282
[details]
) > No changelog. Also is this style checked? I didn't notice any issues so far > but it's a big patch.
will clean up, and split it into more patches
Yong Li
Comment 7
2009-07-30 13:29:24 PDT
Created
attachment 33823
[details]
1) Clipboard
Yong Li
Comment 8
2009-07-30 13:30:13 PDT
Created
attachment 33824
[details]
2) ScrollView
Yong Li
Comment 9
2009-07-30 13:30:41 PDT
Created
attachment 33825
[details]
3) Widget, Scrollbar
Yong Li
Comment 10
2009-07-30 13:31:24 PDT
Created
attachment 33826
[details]
4) SharedBuffer
Yong Li
Comment 11
2009-07-30 13:31:51 PDT
Created
attachment 33827
[details]
5) ContextMenu
Yong Li
Comment 12
2009-07-30 13:32:43 PDT
Created
attachment 33828
[details]
6) SharedTimer and SystemTime
Yong Li
Comment 13
2009-07-30 13:33:11 PDT
Created
attachment 33829
[details]
7) KeygenWince
Yong Li
Comment 14
2009-07-30 13:33:39 PDT
Created
attachment 33830
[details]
8) Other
Eric Seidel (no email)
Comment 15
2009-08-07 13:06:13 PDT
Comment on
attachment 33823
[details]
1) Clipboard Too large.
Yong Li
Comment 16
2009-08-07 13:15:56 PDT
(In reply to
comment #15
)
> (From update of
attachment 33823
[details]
) > Too large.
The ChangeLog is for all. we probably should split the ChangeLog, too. But the patch contains only 3 files for clipboard.
George Staikos
Comment 17
2009-08-07 13:16:11 PDT
Comment on
attachment 33823
[details]
1) Clipboard nonsense
George Staikos
Comment 18
2009-08-07 13:16:53 PDT
(In reply to
comment #16
)
> (In reply to
comment #15
) > > (From update of
attachment 33823
[details]
[details]) > > Too large. > > The ChangeLog is for all. we probably should split the ChangeLog, too. But the > patch contains only 3 files for clipboard.
Yes, please split the changelog and leave the patches as they are, including the appropriate changelogs.
Eric Seidel (no email)
Comment 19
2009-08-08 10:32:21 PDT
(In reply to
comment #17
)
> (From update of
attachment 33823
[details]
) > nonsense
Wow. I think that's totally inappropriate behavior from a reviewer.
Eric Seidel (no email)
Comment 20
2009-08-08 10:33:05 PDT
None of these have ChangeLogs. Why are they marked for review?
Yong Li
Comment 21
2009-08-08 10:47:36 PDT
Created
attachment 34372
[details]
1) Clipboard
Yong Li
Comment 22
2009-08-08 10:50:57 PDT
Created
attachment 34373
[details]
1) Clipboard oops, written by Joe Mason
Yong Li
Comment 23
2009-08-08 10:53:28 PDT
Created
attachment 34374
[details]
1) Clipboard
Yong Li
Comment 24
2009-08-08 10:58:41 PDT
Created
attachment 34375
[details]
2) ScrollView
Yong Li
Comment 25
2009-08-08 11:02:00 PDT
Created
attachment 34376
[details]
3) Scrollbar & Widget
Yong Li
Comment 26
2009-08-08 11:07:51 PDT
Created
attachment 34378
[details]
4) SharedBuffer & OptimizedBuffer Allow SharedBuffer to base on a segmented buffer or streaming data source.
Yong Li
Comment 27
2009-08-08 11:12:06 PDT
Created
attachment 34379
[details]
5) ContextMenu Written by Joe Mason
Yong Li
Comment 28
2009-08-08 11:16:21 PDT
Created
attachment 34380
[details]
6) SharedTimer & SystemTime
Yong Li
Comment 29
2009-08-08 11:20:27 PDT
Created
attachment 34381
[details]
7) Keygen (Security) Written by Lyon Chen
Yong Li
Comment 30
2009-08-08 11:25:12 PDT
Created
attachment 34382
[details]
8) Pasteboard & SearchPopupMenu Written by Joe Mason
Yong Li
Comment 31
2009-08-08 11:30:41 PDT
Created
attachment 34383
[details]
8) Pasteboard & SearchPopupMenu Oops, last one is wrong
Yong Li
Comment 32
2009-08-08 11:32:32 PDT
Created
attachment 34384
[details]
9) MIMETypeRegistry
Yong Li
Comment 33
2009-08-08 11:36:11 PDT
Created
attachment 34385
[details]
10) Cursor
Yong Li
Comment 34
2009-08-08 11:38:43 PDT
Created
attachment 34386
[details]
11) FileSystem and FileChooser
George Staikos
Comment 35
2009-08-08 11:38:46 PDT
Comment on
attachment 34381
[details]
7) Keygen (Security) For some meaningful review,
>> +#include "config.h" > +#include "SSLKeyGenerator.h" > + > +#include "Base64.h" > +#include "CString.h" > + > +#include <windows.h> > +#include <wincrypt.h>
Is this out of order by design?
> + > +#define KEYGEN_DEBUG_KEY 0x00000001 > + > +#ifndef NDEBUG > +#define KEYGEN_DEBUG (0) > +#else > +#define KEYGEN_DEBUG 0 > +#endif
This is odd. Why 0 or 0? I think we need to do better on the debug scheme.
> +String WebCore::signedPublicKeyAndChallengeString(unsigned index, const String& challenge, const KURL& url) > +{ > + String keystr; > + > + HCRYPTPROV hProv = 0; > + HCRYPTKEY hKey = 0; > + PCERT_PUBLIC_KEY_INFO pPubInfo = 0; > + DWORD dwPubInfoLength = 0; > + CERT_KEYGEN_REQUEST_INFO requestInfo; > + CRYPT_ALGORITHM_IDENTIFIER signAlgo; > + LPBYTE pbEncoded = 0; > + DWORD dwEncodedLength = 0; > + LPWSTR pszString = 0; > + Vector<char> binary; > + Vector<char> base64;
A good number of these can be moved to the relevant area so we don't lose track of what they're used for and if they're no-longer used.
> + BOOL success = CryptAcquireContext(&hProv, _T("keygen_container"), MS_ENHANCED_PROV, PROV_RSA_FULL, CRYPT_NEWKEYSET); > + if (!success) > + goto error;
Can we do better than lots of gotos?
> + pPubInfo = (PCERT_PUBLIC_KEY_INFO) new char[dwPubInfoLength]; > + if (!pPubInfo) > + goto error;
No need to check new return.
> + if (challenge.length()) { > + pszString = new WCHAR[challenge.length() + 1]; > + if (pszString) {
Same.
> + pbEncoded = (LPBYTE) new char[dwEncodedLength]; > + if (!pbEncoded) > + goto error;
Same
> +error: > + if (pszString) > + delete[] pszString; > + if (pbEncoded) > + delete[] pbEncoded; > + if (pPubInfo) > + delete[] pPubInfo;
Those if() are redundant
George Staikos
Comment 36
2009-08-08 11:41:23 PDT
Comment on
attachment 34384
[details]
9) MIMETypeRegistry & style is inconsistent - type& name in some places. Otherwise it's fine so r+ on condition those are fixed on checkin.
Yong Li
Comment 37
2009-08-08 11:41:38 PDT
Created
attachment 34387
[details]
12) Other (simple stubs to make it build)
Yong Li
Comment 38
2009-08-08 11:44:53 PDT
(In reply to
comment #35
)
> (From update of
attachment 34381
[details]
) > For some meaningful review, > > >> +#include "config.h" > > +#include "SSLKeyGenerator.h" > > + > > +#include "Base64.h" > > +#include "CString.h" > > + > > +#include <windows.h> > > +#include <wincrypt.h> > > Is this out of order by design?
The order of headers are sometimes important on Windows. Not sure with this one, but I think it's good to put <windows.h> before <wincrypt.h>
Eric Seidel (no email)
Comment 39
2009-08-08 11:56:04 PDT
Comment on
attachment 34384
[details]
9) MIMETypeRegistry No need for the explicit String cast here: 113 return String("xml");
Eric Seidel (no email)
Comment 40
2009-08-08 12:04:22 PDT
Comment on
attachment 34387
[details]
12) Other (simple stubs to make it build) The create* functions returning 0 might cause crashes. You might want to add notImplemented() calls to those as well. Why is this needed? 34 #define _SYS_GUID_OPERATORS_ Please remove the _SYS_GUID_OPERATORS_ when landing.
Yong Li
Comment 41
2009-08-08 12:07:03 PDT
(In reply to
comment #39
)
> (From update of
attachment 34384
[details]
) > No need for the explicit String cast here: > 113 return String("xml");
thanks. but isn't it better than implicit cast?
Yong Li
Comment 42
2009-08-08 12:08:45 PDT
(In reply to
comment #40
)
> (From update of
attachment 34387
[details]
) > The create* functions returning 0 might cause crashes. You might want to add > notImplemented() calls to those as well. > > Why is this needed? > 34 #define _SYS_GUID_OPERATORS_ > > Please remove the _SYS_GUID_OPERATORS_ when landing.
thanks
Eric Seidel (no email)
Comment 43
2009-08-08 12:11:58 PDT
Comment on
attachment 34385
[details]
10) Cursor An interesting approach. :) Indent: 41 : m_impl(other.m_impl) 46 : m_impl(CursorNone) 61 : m_impl(c) Normally we don't use "get" in function names. I might have named it cursorForType(type) instead. I've never seen a .cpp file use single-line function declarations like that before. But I also don't think it's harmful. OK. Please fix the indent nit on landing.
Eric Seidel (no email)
Comment 44
2009-08-08 12:15:24 PDT
(In reply to
comment #41
)
> (In reply to
comment #39
) > > (From update of
attachment 34384
[details]
[details]) > > No need for the explicit String cast here: > > 113 return String("xml"); > > thanks. but isn't it better than implicit cast?
The implicit construction is fewer characters to read. :) And there are already other return statements in that same function which use the implicit String(char*) constructor.
Yong Li
Comment 45
2009-08-11 14:10:46 PDT
Created
attachment 34590
[details]
7) Keygen (Security) refactored by Yong
George Staikos
Comment 46
2009-08-11 14:19:09 PDT
(In reply to
comment #45
)
> Created an attachment (id=34590) [details] > 7) Keygen (Security) > > refactored by Yong
Are you sure? It looks the same to me.
Yong Li
Comment 47
2009-08-11 15:12:26 PDT
(In reply to
comment #46
)
> (In reply to
comment #45
) > > Created an attachment (id=34590) [details] [details] > > 7) Keygen (Security) > > > > refactored by Yong > > Are you sure? It looks the same to me.
hm... a mistake
Yong Li
Comment 48
2009-08-11 15:17:29 PDT
Created
attachment 34602
[details]
7) KeyGen (modified)
George Staikos
Comment 49
2009-08-12 09:29:13 PDT
Comment on
attachment 34602
[details]
7) KeyGen (modified) I think standard for your for(;;) is really to do: do { } while (0); Best to change to that and then your comment isn't necessary. Also you have a double semicolon in your first if (). Those minor fixes and the rest is fine with me.
Darin Adler
Comment 50
2009-08-12 09:33:40 PDT
(In reply to
comment #49
)
> I think standard for your for(;;) is really to do: > > do { > } while (0);
for(;;) is an infinite loop. The above is not an infinite loop, it's a one time loop, so it can't be used. For infinite loops, the most common pattern in WebKit is while (true).
Yong Li
Comment 51
2009-08-12 09:42:12 PDT
I like for (;;) so much personally :), but seems not allowed in webkit? Probably I'd better change it back to goto. Another way to avoid goto is if (...) { if (...) { ... // free resources } // free resources } I also like this way, but I'm afraid that someone will say there're too many indentations. I also planed to create wrapper classes for HCRYPTKEY and HCRYPTPROV that release resource automatically, but probably it's a waste for this single usage. Sadly, OwnPtr<> doesn't work in this case because HCRYPTKEY and HCRYPTPROV are just "void*". I considered a lot about this. I'm going to use goto, which makes everyone understand
George Staikos
Comment 52
2009-08-12 10:57:48 PDT
(In reply to
comment #50
)
> (In reply to
comment #49
) > > I think standard for your for(;;) is really to do: > > > > do { > > } while (0); > > for(;;) is an infinite loop. The above is not an infinite loop, it's a one time > loop, so it can't be used. For infinite loops, the most common pattern in > WebKit is while (true).
You got confused in much the same way I was trying to point out. :-) It's -never- supposed to loop. That's what the comment says at the top. That's why it should change.
Yong Li
Comment 53
2009-08-12 11:13:09 PDT
Created
attachment 34678
[details]
7) KeygenWince.cpp fixed a bug changed to do while(0). also fixed a bug that pPubInfo leaked in last patch, because it's defined twice. goto is not good because local object construction after goto doesn't compile.
George Staikos
Comment 54
2009-08-12 12:08:19 PDT
Comment on
attachment 34386
[details]
11) FileSystem and FileChooser Seems like a lot of work to be done in these files still, but if we ever want to be building in svn we have to get it checked in, and what is done seems to work well enough. The FIXMEs and notImplemented can be done another day.
George Staikos
Comment 55
2009-08-12 12:12:19 PDT
Comment on
attachment 34379
[details]
5) ContextMenu
> + m_platformDescription = new PlatformMenuItemDescriptionType; > + if (!m_platformDescription) > + return;
Don't think we should be checking for null here.
> +void ContextMenuItem::setSubMenu(ContextMenu* subMenu) > +{ > + if (!m_platformDescription) > + return;
In fact can we remove all of these checks?
George Staikos
Comment 56
2009-08-12 12:17:21 PDT
Comment on
attachment 34374
[details]
1) Clipboard
> +static bool getWebLocData(IDataObject* dataObject, String& url, String* title) > +{ > + return false; > +}
Should probably add some UNUSED_PARAM() here
> + CString cf_html = "Version:0.9"; > + CString startHTML = "\nStartHTML:"; > + CString endHTML = "\nEndHTML:"; > + CString startFragment = "\nStartFragment:"; > + CString endFragment = "\nEndFragment:"; > + CString sourceURL = "\nSourceURL:"; > + > + append(result, cf_html); > + > + bool shouldFillSourceURL = !srcURL.isEmpty() && (srcURL != "about:blank"); > + > + CString startMarkup = "\n<HTML>\n<BODY>\n<!--StartFragment-->\n"; > + CString endMarkup = "\n<!--EndFragment-->\n</BODY>\n</HTML>";
all these CString should be "const" right? static too maybe?
> +void ClipboardWince::clearData(const String& type) > +{ > + notImplemented(); > +}
This file can use lots of UNUSED_PARAM() The rest seems fine
Adam Treat
Comment 57
2009-08-12 12:25:29 PDT
Comment on
attachment 34380
[details]
6) SharedTimer & SystemTime Clear flag as was landed in
r47132
.
Adam Treat
Comment 58
2009-08-12 12:28:38 PDT
Comment on
attachment 34383
[details]
8) Pasteboard & SearchPopupMenu Clear flags as landed with
r47133
.
Eric Seidel (no email)
Comment 59
2009-08-12 12:29:08 PDT
Comment on
attachment 34380
[details]
6) SharedTimer & SystemTime Rejecting patch 34380 from commit-queue. This patch will require manual commit. WebKitTools/Scripts/run-webkit-tests --no-launch-safari --quiet failed with exit code 1
Adam Treat
Comment 60
2009-08-12 12:32:42 PDT
Comment on
attachment 34384
[details]
9) MIMETypeRegistry Clear flags as landed with
r47134
.
Yong Li
Comment 61
2009-08-12 12:35:28 PDT
Created
attachment 34680
[details]
5) ContextMenu (modified) modified according George's suggestion. we have to check m_platformDescription in other functions because it can be cleared by releasePlatformDescription
Adam Treat
Comment 62
2009-08-12 12:35:29 PDT
Comment on
attachment 34385
[details]
10) Cursor Clear flags as landed with
r47135
.
Adam Treat
Comment 63
2009-08-12 12:39:06 PDT
Comment on
attachment 34386
[details]
11) FileSystem and FileChooser Clear flags as landed with
r47136
.
Adam Treat
Comment 64
2009-08-12 12:41:33 PDT
Comment on
attachment 34387
[details]
12) Other (simple stubs to make it build) Clearing flags as landed with
r47137
.
Adam Treat
Comment 65
2009-08-12 12:45:33 PDT
Comment on
attachment 34678
[details]
7) KeygenWince.cpp fixed a bug Clear flags as landed with
r47139
.
Yong Li
Comment 66
2009-08-12 12:52:48 PDT
Created
attachment 34681
[details]
1) Clipboard (modified) modified according George's suggestion
Eric Seidel (no email)
Comment 67
2009-08-19 00:07:54 PDT
This bug is basically impossible to follow with this many patches on it. :(
Eric Seidel (no email)
Comment 68
2009-08-19 00:10:26 PDT
Comment on
attachment 34378
[details]
4) SharedBuffer & OptimizedBuffer This does not follow WebKit style: 22 #ifndef _OPTIMIZED_BUFFER_H_ Early returns? if (OptimizedBuffer::isCreatorInstalled()) { 246 if (OptimizedBuffer* optimizedBuffer = OptimizedBuffer::createInstance(m_size, m_optimizedBuffer, true)) {
Eric Seidel (no email)
Comment 69
2009-08-19 00:14:37 PDT
Comment on
attachment 34376
[details]
3) Scrollbar & Widget Does this not exist anywhere else in teh code base? // stableRound rounds -0.5 to 0, where lround rounds -0.5 to -1. 41 static inline int stableRound(double d) 42 { The ChnageLog is pretty bare. What does the "c" mean here? (they're not const) Are you sure these follow WebKit style? static int cHorizontalWidth[] = { 15, 11 }; 61 static int cHorizontalHeight[] = { 15, 11 }; I would look up the size and have a single setFrameRec call: if (orientation == VerticalScrollbar) 79 setFrameRect(IntRect(0, 0, cVerticalWidth[controlSize()], cVerticalHeight[controlSize()])); 80 else 81 setFrameRect(IntRect(0, 0, cHorizontalWidth[controlSize()], cHorizontalHeight[controlSize()])); Also that would allow you to use IntRect(IntPoint(), scrollbarSize) constructor as well. Indent: default: 126 { 127 IntRect beforeThumbRect, thumbRect, afterThumbRect; 128 splitTrack(trackRect(), beforeThumbRect, thumbRect, afterThumbRect); 129 if (part == BackTrackPart) Early return is preferred: if (enabled != isEnabled()) { 164 Scrollbar::setEnabled(enabled); this really should have its own bug, and this bug should be retired.
Adam Barth
Comment 70
2009-09-01 18:10:55 PDT
This bug is out of control. Please file separate bugs and re-post the patches that are still relevant. Uber bugs like this don't work very well in our processes.
Adam Barth
Comment 71
2009-09-01 18:12:09 PDT
Comment on
attachment 34375
[details]
2) ScrollView Clearing review flags on these patches so they can be moved to separate bugs.
Yong Li
Comment 72
2009-09-02 06:09:14 PDT
(In reply to
comment #71
)
> (From update of
attachment 34375
[details]
) > Clearing review flags on these patches so they can be moved to separate bugs.
some of them have been landed
Adam Barth
Comment 73
2009-09-02 06:32:12 PDT
(In reply to
comment #72
)
> some of them have been landed
Even better. :) When patch land, it's helpful to clear the review flags so that other reviewers don't invest more time examining the patches.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug