RESOLVED FIXED 133819
Convert TileController and TileGrid from ObjC to C++
https://bugs.webkit.org/show_bug.cgi?id=133819
Summary Convert TileController and TileGrid from ObjC to C++
Brent Fulgham
Reported 2014-06-12 13:43:00 PDT
This is a first step in porting the Mac Tiled Drawing logic to Windows.
Attachments
Patch (102.66 KB, patch)
2014-06-12 15:02 PDT, Brent Fulgham
thorton: review+
Radar WebKit Bug Importer
Comment 1 2014-06-12 13:43:22 PDT
Brent Fulgham
Comment 2 2014-06-12 15:02:20 PDT
WebKit Commit Bot
Comment 3 2014-06-12 15:04:36 PDT
Attachment 232994 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/ca/mac/TileGrid.cpp:186: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/ca/mac/TileGrid.cpp:259: Missing space after , [whitespace/comma] [3] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 4 2014-06-12 15:09:19 PDT
Comment on attachment 232994 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=232994&action=review > Source/WebCore/platform/graphics/ca/mac/TileController.cpp:386 > + FloatRect visiblePart(CGRectOffset([tileLayer frame], tileTranslation.x(), tileTranslation.y())); looks like ObjC to me! > Source/WebCore/platform/graphics/ca/mac/TileController.cpp:386 > - FloatRect visiblePart(CGRectOffset([tileLayer frame], tileTranslation.x(), tileTranslation.y())); > + FloatRect visiblePart(CGRectOffset(frameForLayer(tileLayer), tileTranslation.x(), tileTranslation.y())); wut. weird patch format, I guess? > Source/WebCore/platform/graphics/mac/WebLayer.h:31 > +#include <WebCore/FloatRect.h> we're in webcore, is there any need for WebCore/?
Brent Fulgham
Comment 5 2014-06-12 15:35:13 PDT
Brent Fulgham
Comment 6 2014-06-12 16:13:07 PDT
Follow-up commit: r169919 <http://trac.webkit.org/changeset/169919> This was needed because Xcode only changed the logical folder names of the new files; they were meant to be moved from the 'mac' specific folder.
Brent Fulgham
Comment 7 2014-06-12 17:28:55 PDT
Second follow up commit: Committed revision 169923. This was needed because 'TileController.h' must be marked as a Private header or else the WebKit2 build will fail.
Note You need to log in before you can comment on or make changes to this bug.