RESOLVED FIXED 157037
Use auto-generated operators in FontPlatformData
https://bugs.webkit.org/show_bug.cgi?id=157037
Summary Use auto-generated operators in FontPlatformData
Myles C. Maxfield
Reported 2016-04-26 10:57:59 PDT
Use auto-generated operators in FontPlatformData
Attachments
Patch (11.82 KB, patch)
2016-04-26 11:00 PDT, Myles C. Maxfield
ggaren: review+
achristensen: commit-queue-
Patch for committing (12.94 KB, patch)
2016-04-26 11:59 PDT, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2016-04-26 11:00:48 PDT
Geoffrey Garen
Comment 2 2016-04-26 11:09:15 PDT
Comment on attachment 277400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277400&action=review > Source/WebCore/platform/graphics/FontPlatformData.h:170 > + FontPlatformData& operator=(const FontPlatformData&) = default; Is this default declaration required, or can it be automatic?
Myles C. Maxfield
Comment 3 2016-04-26 11:12:11 PDT
Comment on attachment 277400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277400&action=review >> Source/WebCore/platform/graphics/FontPlatformData.h:170 >> + FontPlatformData& operator=(const FontPlatformData&) = default; > > Is this default declaration required, or can it be automatic? It isn't required, but I still think it's valuable to be explicit in this case.
Said Abou-Hallawa
Comment 4 2016-04-26 11:43:12 PDT
Comment on attachment 277400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277400&action=review > Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp:89 > + m_scaledFont = adoptRef(cairo_scaled_font_create(fontFace, &fontMatrix, &ctm, options)); Wrong spacing at the beginning. > Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp:-49 > -#endif You removed the #endif.
Myles C. Maxfield
Comment 5 2016-04-26 11:59:30 PDT
Created attachment 277404 [details] Patch for committing
WebKit Commit Bot
Comment 6 2016-04-26 12:48:54 PDT
Comment on attachment 277404 [details] Patch for committing Clearing flags on attachment: 277404 Committed r200104: <http://trac.webkit.org/changeset/200104>
Darin Adler
Comment 7 2016-04-27 11:01:58 PDT
Comment on attachment 277400 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277400&action=review >>> Source/WebCore/platform/graphics/FontPlatformData.h:170 >>> + FontPlatformData& operator=(const FontPlatformData&) = default; >> >> Is this default declaration required, or can it be automatic? > > It isn't required, but I still think it's valuable to be explicit in this case. I don’t understand why you say that. Personally I would like to see it removed. > Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp:46 > , m_cgFont(0) Initializing this and many other members in the class definition would be beneficial.
Note You need to log in before you can comment on or make changes to this bug.