Summary: | Rearrange the code of FrameWin | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Patrick R. Gansterer <paroga> | ||||||||
Component: | Platform | Assignee: | Patrick R. Gansterer <paroga> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | bfulgham, commit-queue | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Other | ||||||||||
OS: | Windows 7 | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 117988 | ||||||||||
Attachments: |
|
Description
Patrick R. Gansterer
2013-06-25 05:48:46 PDT
Created attachment 205390 [details]
Patch
Attachment 205390 [details] did not pass style-queue:
Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/page/win/FrameCGWin.cpp', u'Source/WebCore/page/win/FrameCairoWin.cpp', u'Source/WebCore/page/win/FrameWin.cpp', u'Source/WebCore/page/win/FrameWin.h', u'Source/WebKit/win/WebView.cpp']" exit_code: 1
Source/WebCore/page/win/FrameWin.cpp:55: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3]
Total errors found: 1 in 6 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 205392 [details]
Patch
Comment on attachment 205392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=205392&action=review I think the imageFromRect method should take a const Frame* argument. Otherwise, this looks good to me. Please correct the const when you land it. > Source/WebCore/page/win/FrameCGWin.cpp:52 > +PassOwnPtr<HBITMAP> imageFromRect(Frame* frame, IntRect& ir) Why remove the 'const' from the Frame* argument? Also, I think the ChangeLog should be a bit more descriptive, since you: 1. Shared more code between WinCairo and Windows. 2. Made use of our safer pointer types. Also, please fix the spaces in FrameWin.cpp when you land. Created attachment 207914 [details]
Patch for landing
Comment on attachment 207914 [details]
Patch for landing
r=me
Comment on attachment 207914 [details] Patch for landing Clearing flags on attachment: 207914 Committed r153586: <http://trac.webkit.org/changeset/153586> All reviewed patches have been landed. Closing bug. |