[BlackBerry] Upstream the BlackBerry change to platform/graphics/IntRect.h
authorleo.yang@torchmobile.com.cn <leo.yang@torchmobile.com.cn@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Feb 2012 05:49:02 +0000 (05:49 +0000)
committerleo.yang@torchmobile.com.cn <leo.yang@torchmobile.com.cn@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Feb 2012 05:49:02 +0000 (05:49 +0000)
https://bugs.webkit.org/show_bug.cgi?id=79732

Reviewed by Antonio Gomes.

Add conversion convenience between WebCore::IntRect and BlackBerry::Platform::IntRect.

The porting can't be built yet, no new tests.

* platform/graphics/IntRect.h:
(Platform):
(IntRect):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/IntRect.h

index 57cbffa..efab91a 100644 (file)
@@ -1,3 +1,18 @@
+2012-02-27  Leo Yang  <leo.yang@torchmobile.com.cn>
+
+        [BlackBerry] Upstream the BlackBerry change to platform/graphics/IntRect.h
+        https://bugs.webkit.org/show_bug.cgi?id=79732
+
+        Reviewed by Antonio Gomes.
+
+        Add conversion convenience between WebCore::IntRect and BlackBerry::Platform::IntRect.
+
+        The porting can't be built yet, no new tests.
+
+        * platform/graphics/IntRect.h:
+        (Platform):
+        (IntRect):
+
 2012-02-27  Emil A Eklund  <eae@chromium.org>
 
         Printed font-size should not be dependant on zoom level
index 3ea8229..fcbf27a 100644 (file)
@@ -53,6 +53,12 @@ typedef struct _GdkRectangle GdkRectangle;
 #endif
 #elif PLATFORM(EFL)
 typedef struct _Eina_Rectangle Eina_Rectangle;
+#elif PLATFORM(BLACKBERRY)
+namespace BlackBerry {
+namespace Platform {
+class IntRect;
+}
+}
 #endif
 
 #if USE(CAIRO)
@@ -214,6 +220,11 @@ public:
     operator NSRect() const;
 #endif
 
+#if PLATFORM(BLACKBERRY)
+    IntRect(const BlackBerry::Platform::IntRect&);
+    operator BlackBerry::Platform::IntRect() const;
+#endif
+
 private:
     IntPoint m_location;
     IntSize m_size;