Title: [185117] trunk/Source/WebCore
- Revision
- 185117
- Author
- [email protected]
- Date
- 2015-06-02 13:19:08 -0700 (Tue, 02 Jun 2015)
Log Message
Remove use of CTFontSetRenderingParameters()
https://bugs.webkit.org/show_bug.cgi?id=145560
Reviewed by Simon Fraser.
Instead, always use CTFontSetRenderingStyle().
No new tests because there is no behavior change.
* platform/graphics/cocoa/FontCascadeCocoa.mm:
(WebCore::RenderingStyleSaver::RenderingStyleSaver): Deleted.
(WebCore::RenderingStyleSaver::~RenderingStyleSaver): Deleted.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (185116 => 185117)
--- trunk/Source/WebCore/ChangeLog 2015-06-02 20:00:01 UTC (rev 185116)
+++ trunk/Source/WebCore/ChangeLog 2015-06-02 20:19:08 UTC (rev 185117)
@@ -1,3 +1,18 @@
+2015-06-02 Myles C. Maxfield <[email protected]>
+
+ Remove use of CTFontSetRenderingParameters()
+ https://bugs.webkit.org/show_bug.cgi?id=145560
+
+ Reviewed by Simon Fraser.
+
+ Instead, always use CTFontSetRenderingStyle().
+
+ No new tests because there is no behavior change.
+
+ * platform/graphics/cocoa/FontCascadeCocoa.mm:
+ (WebCore::RenderingStyleSaver::RenderingStyleSaver): Deleted.
+ (WebCore::RenderingStyleSaver::~RenderingStyleSaver): Deleted.
+
2015-06-02 Anders Carlsson <[email protected]>
Move WKFontAntialiasingStateSaver to its own file
Modified: trunk/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm (185116 => 185117)
--- trunk/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm 2015-06-02 20:00:01 UTC (rev 185116)
+++ trunk/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm 2015-06-02 20:19:08 UTC (rev 185117)
@@ -134,30 +134,8 @@
class RenderingStyleSaver {
public:
#if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000
-
RenderingStyleSaver(CTFontRef, CGContextRef) { }
-
-#elif !defined(CORETEXT_HAS_CTFontSetRenderingStyle) || CORETEXT_HAS_CTFontSetRenderingStyle != 1
-
- // This is very slow, but it's just a holdover until everyone migrates to CTFontSetRenderingStyle()
- // FIXME: Delete this implementation when everyone has migrated off
- RenderingStyleSaver(CTFontRef font, CGContextRef context)
- : m_context(context)
- {
- CGContextSaveGState(context);
- CTFontSetRenderingParameters(font, context);
- }
-
- ~RenderingStyleSaver()
- {
- CGContextRestoreGState(m_context);
- }
-
-private:
- CGContextRef m_context;
-
#else
-
RenderingStyleSaver(CTFontRef font, CGContextRef context)
: m_context(context)
{
@@ -177,7 +155,6 @@
CGContextRef m_context;
CGFontRenderingStyle m_originalStyle;
CGSize m_originalDilation;
-
#endif
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes