Title: [90129] trunk/Source
Revision
90129
Author
[email protected]
Date
2011-06-30 09:53:52 -0700 (Thu, 30 Jun 2011)

Log Message

Add +[WebView _allowsRoundingHacks]
https://bugs.webkit.org/show_bug.cgi?id=63734

Reviewed by Adele Peterson.

Source/WebCore: 

* WebCore.exp.in: Export TextRun::allowsRoundingHacks().
* platform/graphics/TextRun.cpp:
(WebCore::TextRun::allowsRoundingHacks): Added this accessor.
* platform/graphics/TextRun.h:

Source/WebKit/mac: 

* WebView/WebView.mm:
(+[WebView _allowsRoundingHacks]): Added this accessor.
* WebView/WebViewPrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (90128 => 90129)


--- trunk/Source/WebCore/ChangeLog	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebCore/ChangeLog	2011-06-30 16:53:52 UTC (rev 90129)
@@ -1,3 +1,15 @@
+2011-06-30  Dan Bernstein  <[email protected]>
+
+        Reviewed by Adele Peterson.
+
+        Add +[WebView _allowsRoundingHacks]
+        https://bugs.webkit.org/show_bug.cgi?id=63734
+
+        * WebCore.exp.in: Export TextRun::allowsRoundingHacks().
+        * platform/graphics/TextRun.cpp:
+        (WebCore::TextRun::allowsRoundingHacks): Added this accessor.
+        * platform/graphics/TextRun.h:
+
 2011-06-30  Patrick Gansterer  <[email protected]>
 
         Reviewed by Adam Roben.

Modified: trunk/Source/WebCore/WebCore.exp.in (90128 => 90129)


--- trunk/Source/WebCore/WebCore.exp.in	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebCore/WebCore.exp.in	2011-06-30 16:53:52 UTC (rev 90129)
@@ -826,6 +826,7 @@
 __ZN7WebCore7IntRect9intersectERKS0_
 __ZN7WebCore7IntRectC1ERKNS_9FloatRectE
 __ZN7WebCore7IntSizeC1ERK7_NSSize
+__ZN7WebCore7TextRun19allowsRoundingHacksEv
 __ZN7WebCore7TextRun21s_allowsRoundingHacksE
 __ZN7WebCore7TextRun22setAllowsRoundingHacksEb
 __ZN7WebCore7cookiesEPKNS_8DocumentERKNS_4KURLE

Modified: trunk/Source/WebCore/platform/graphics/TextRun.cpp (90128 => 90129)


--- trunk/Source/WebCore/platform/graphics/TextRun.cpp	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebCore/platform/graphics/TextRun.cpp	2011-06-30 16:53:52 UTC (rev 90129)
@@ -35,4 +35,9 @@
     s_allowsRoundingHacks = allowsRoundingHacks;
 }
 
+bool TextRun::allowsRoundingHacks()
+{
+    return s_allowsRoundingHacks;
 }
+
+}

Modified: trunk/Source/WebCore/platform/graphics/TextRun.h (90128 => 90129)


--- trunk/Source/WebCore/platform/graphics/TextRun.h	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebCore/platform/graphics/TextRun.h	2011-06-30 16:53:52 UTC (rev 90129)
@@ -146,6 +146,7 @@
     void setRenderingContext(PassRefPtr<RenderingContext> context) { m_renderingContext = context; }
 
     static void setAllowsRoundingHacks(bool);
+    static bool allowsRoundingHacks();
 
 private:
     static bool s_allowsRoundingHacks;

Modified: trunk/Source/WebKit/mac/ChangeLog (90128 => 90129)


--- trunk/Source/WebKit/mac/ChangeLog	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebKit/mac/ChangeLog	2011-06-30 16:53:52 UTC (rev 90129)
@@ -1,3 +1,14 @@
+2011-06-30  Dan Bernstein  <[email protected]>
+
+        Reviewed by Adele Peterson.
+
+        Add +[WebView _allowsRoundingHacks]
+        https://bugs.webkit.org/show_bug.cgi?id=63734
+
+        * WebView/WebView.mm:
+        (+[WebView _allowsRoundingHacks]): Added this accessor.
+        * WebView/WebViewPrivate.h:
+
 2011-06-29  Darin Adler  <[email protected]>
 
         Reviewed by Dan Bernstein.

Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (90128 => 90129)


--- trunk/Source/WebKit/mac/WebView/WebView.mm	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm	2011-06-30 16:53:52 UTC (rev 90129)
@@ -1071,6 +1071,11 @@
     TextRun::setAllowsRoundingHacks(allowsRoundingHacks);
 }
 
++ (BOOL)_allowsRoundingHacks
+{
+    return TextRun::allowsRoundingHacks();
+}
+
 + (BOOL)canCloseAllWebViews
 {
     return DOMWindow::dispatchAllPendingBeforeUnloadEvents();

Modified: trunk/Source/WebKit/mac/WebView/WebViewPrivate.h (90128 => 90129)


--- trunk/Source/WebKit/mac/WebView/WebViewPrivate.h	2011-06-30 16:52:27 UTC (rev 90128)
+++ trunk/Source/WebKit/mac/WebView/WebViewPrivate.h	2011-06-30 16:53:52 UTC (rev 90129)
@@ -342,6 +342,7 @@
 + (void)_setAlwaysUseATSU:(BOOL)f;
 
 + (void)_setAllowsRoundingHacks:(BOOL)allowsRoundingHacks;
++ (BOOL)_allowsRoundingHacks;
 
 - (NSCachedURLResponse *)_cachedResponseForURL:(NSURL *)URL;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to