Add +[WebView _allowsRoundingHacks]
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 16:53:52 +0000 (16:53 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Jun 2011 16:53:52 +0000 (16:53 +0000)
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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@90129 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/platform/graphics/TextRun.cpp
Source/WebCore/platform/graphics/TextRun.h
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit/mac/WebView/WebViewPrivate.h

index 9d88f062366d706640bd0a34a6a181397bbf599b..ffc72978855a1e4d0e5e61f04138c9b40757316c 100644 (file)
@@ -1,3 +1,15 @@
+2011-06-30  Dan Bernstein  <mitz@apple.com>
+
+        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  <paroga@webkit.org>
 
         Reviewed by Adam Roben.
index 93fff9afe1e97a727b0f25e6a4e38cc45e7de795..c0bfc9fd821e860fbeaa3f205d35aa3005ed8fd7 100644 (file)
@@ -826,6 +826,7 @@ __ZN7WebCore7IntRect5uniteERKS0_
 __ZN7WebCore7IntRect9intersectERKS0_
 __ZN7WebCore7IntRectC1ERKNS_9FloatRectE
 __ZN7WebCore7IntSizeC1ERK7_NSSize
+__ZN7WebCore7TextRun19allowsRoundingHacksEv
 __ZN7WebCore7TextRun21s_allowsRoundingHacksE
 __ZN7WebCore7TextRun22setAllowsRoundingHacksEb
 __ZN7WebCore7cookiesEPKNS_8DocumentERKNS_4KURLE
index 7f79936fd46995156008b7dbc34770cb9b14dbe8..b41bc873db4f31e62d4bc8edcb72f03c97a5cb19 100644 (file)
@@ -35,4 +35,9 @@ void TextRun::setAllowsRoundingHacks(bool allowsRoundingHacks)
     s_allowsRoundingHacks = allowsRoundingHacks;
 }
 
+bool TextRun::allowsRoundingHacks()
+{
+    return s_allowsRoundingHacks;
+}
+
 }
index 79cb25dae0f87c05e44eadb0ad300423c926fe5f..029c708a68df374852eef8aa30a465ab887d8649 100644 (file)
@@ -146,6 +146,7 @@ public:
     void setRenderingContext(PassRefPtr<RenderingContext> context) { m_renderingContext = context; }
 
     static void setAllowsRoundingHacks(bool);
+    static bool allowsRoundingHacks();
 
 private:
     static bool s_allowsRoundingHacks;
index c3c28ccf22e36bba8b7de32c278caf6e931d4e4c..d6a9f2431ca52b25edcc3fe5729d2cd7a096e552 100644 (file)
@@ -1,3 +1,14 @@
+2011-06-30  Dan Bernstein  <mitz@apple.com>
+
+        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  <darin@apple.com>
 
         Reviewed by Dan Bernstein.
index 9ee55ccb53b2ab6693b89c11d3e2635ffe67ca15..791d6e6eda527de309e44f38eb09636bcc2231fe 100644 (file)
@@ -1071,6 +1071,11 @@ static NSMutableSet *knownPluginMIMETypes()
     TextRun::setAllowsRoundingHacks(allowsRoundingHacks);
 }
 
++ (BOOL)_allowsRoundingHacks
+{
+    return TextRun::allowsRoundingHacks();
+}
+
 + (BOOL)canCloseAllWebViews
 {
     return DOMWindow::dispatchAllPendingBeforeUnloadEvents();
index 37352642fbb53b07f6eeb84ebe0e2de3053dcde5..0bf80c9fa309633e0359e36f75ffc4a9a005bd71 100644 (file)
@@ -342,6 +342,7 @@ Could be worth adding to the API.
 + (void)_setAlwaysUseATSU:(BOOL)f;
 
 + (void)_setAllowsRoundingHacks:(BOOL)allowsRoundingHacks;
++ (BOOL)_allowsRoundingHacks;
 
 - (NSCachedURLResponse *)_cachedResponseForURL:(NSURL *)URL;