Diff
Modified: trunk/Source/WebCore/ChangeLog (108244 => 108245)
--- trunk/Source/WebCore/ChangeLog 2012-02-20 16:43:29 UTC (rev 108244)
+++ trunk/Source/WebCore/ChangeLog 2012-02-20 16:50:26 UTC (rev 108245)
@@ -1,3 +1,37 @@
+2012-02-20 Robin Cao <[email protected]>
+
+ [BlackBerry] Upstream the first few files in platform/graphics/blackberry
+ https://bugs.webkit.org/show_bug.cgi?id=79023
+
+ Reviewed by Antonio Gomes.
+
+ Initial upstreaming, no new tests.
+
+ * platform/graphics/blackberry/FloatPointBlackBerry.cpp: Added.
+ (WebCore):
+ (WebCore::FloatPoint::FloatPoint):
+ (WebCore::FloatPoint::operator BlackBerry::Platform::FloatPoint):
+ * platform/graphics/blackberry/FloatRectBlackBerry.cpp: Added.
+ (WebCore):
+ (WebCore::FloatRect::FloatRect):
+ (WebCore::FloatRect::operator BlackBerry::Platform::FloatRect):
+ * platform/graphics/blackberry/FloatSizeBlackBerry.cpp: Added.
+ (WebCore):
+ (WebCore::FloatSize::FloatSize):
+ (WebCore::FloatSize::operator BlackBerry::Platform::FloatSize):
+ * platform/graphics/blackberry/IntPointBlackBerry.cpp: Added.
+ (WebCore):
+ (WebCore::IntPoint::IntPoint):
+ (WebCore::IntPoint::operator BlackBerry::Platform::IntPoint):
+ * platform/graphics/blackberry/IntRectBlackBerry.cpp: Added.
+ (WebCore):
+ (WebCore::IntRect::IntRect):
+ (WebCore::IntRect::operator BlackBerry::Platform::IntRect):
+ * platform/graphics/blackberry/IntSizeBlackBerry.cpp: Added.
+ (WebCore):
+ (WebCore::IntSize::IntSize):
+ (WebCore::IntSize::operator BlackBerry::Platform::IntSize):
+
2012-02-20 Patrick Gansterer <[email protected]>
[WIN] Share openTemporaryFile with WinCE
Added: trunk/Source/WebCore/platform/graphics/blackberry/FloatPointBlackBerry.cpp (0 => 108245)
--- trunk/Source/WebCore/platform/graphics/blackberry/FloatPointBlackBerry.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/blackberry/FloatPointBlackBerry.cpp 2012-02-20 16:50:26 UTC (rev 108245)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "FloatPoint.h"
+
+#include <BlackBerryPlatformPrimitives.h>
+
+namespace WebCore {
+
+FloatPoint::FloatPoint(const BlackBerry::Platform::FloatPoint& p)
+ : m_x(p.x())
+ , m_y(p.y())
+{
+}
+
+FloatPoint::operator BlackBerry::Platform::FloatPoint() const
+{
+ return BlackBerry::Platform::FloatPoint(m_x, m_y);
+}
+
+} // namespace WebCore
Added: trunk/Source/WebCore/platform/graphics/blackberry/FloatRectBlackBerry.cpp (0 => 108245)
--- trunk/Source/WebCore/platform/graphics/blackberry/FloatRectBlackBerry.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/blackberry/FloatRectBlackBerry.cpp 2012-02-20 16:50:26 UTC (rev 108245)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "FloatRect.h"
+
+#include <BlackBerryPlatformPrimitives.h>
+
+namespace WebCore {
+
+FloatRect::FloatRect(const BlackBerry::Platform::FloatRect& rect)
+ : m_location(rect.x(), rect.y())
+ , m_size(rect.width(), rect.height())
+{
+}
+
+FloatRect::operator BlackBerry::Platform::FloatRect() const
+{
+ return BlackBerry::Platform::FloatRect(x(), y(), width(), height());
+}
+
+} // namespace WebCore
Added: trunk/Source/WebCore/platform/graphics/blackberry/FloatSizeBlackBerry.cpp (0 => 108245)
--- trunk/Source/WebCore/platform/graphics/blackberry/FloatSizeBlackBerry.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/blackberry/FloatSizeBlackBerry.cpp 2012-02-20 16:50:26 UTC (rev 108245)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "FloatSize.h"
+
+#include <BlackBerryPlatformPrimitives.h>
+
+namespace WebCore {
+
+FloatSize::FloatSize(const BlackBerry::Platform::FloatSize& size)
+ : m_width(size.width())
+ , m_height(size.height())
+{
+}
+
+FloatSize::operator BlackBerry::Platform::FloatSize() const
+{
+ return BlackBerry::Platform::FloatSize(m_width, m_height);
+}
+
+} // namespace WebCore
Added: trunk/Source/WebCore/platform/graphics/blackberry/IntPointBlackBerry.cpp (0 => 108245)
--- trunk/Source/WebCore/platform/graphics/blackberry/IntPointBlackBerry.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/blackberry/IntPointBlackBerry.cpp 2012-02-20 16:50:26 UTC (rev 108245)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "IntPoint.h"
+
+#include <BlackBerryPlatformPrimitives.h>
+
+namespace WebCore {
+
+IntPoint::IntPoint(const BlackBerry::Platform::IntPoint& p)
+ : m_x(p.x())
+ , m_y(p.y())
+{
+}
+
+IntPoint::operator BlackBerry::Platform::IntPoint() const
+{
+ return BlackBerry::Platform::IntPoint(m_x, m_y);
+}
+
+} // namespace WebCore
Added: trunk/Source/WebCore/platform/graphics/blackberry/IntRectBlackBerry.cpp (0 => 108245)
--- trunk/Source/WebCore/platform/graphics/blackberry/IntRectBlackBerry.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/blackberry/IntRectBlackBerry.cpp 2012-02-20 16:50:26 UTC (rev 108245)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "IntRect.h"
+
+#include <BlackBerryPlatformPrimitives.h>
+
+namespace WebCore {
+
+IntRect::IntRect(const BlackBerry::Platform::IntRect& rect)
+ : m_location(rect.x(), rect.y()), m_size(rect.width(), rect.height())
+{
+}
+
+IntRect::operator BlackBerry::Platform::IntRect() const
+{
+ return BlackBerry::Platform::IntRect(x(), y(), width(), height());
+}
+
+} // namespace WebCore
Added: trunk/Source/WebCore/platform/graphics/blackberry/IntSizeBlackBerry.cpp (0 => 108245)
--- trunk/Source/WebCore/platform/graphics/blackberry/IntSizeBlackBerry.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/blackberry/IntSizeBlackBerry.cpp 2012-02-20 16:50:26 UTC (rev 108245)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "IntSize.h"
+
+#include <BlackBerryPlatformPrimitives.h>
+
+namespace WebCore {
+
+IntSize::IntSize(const BlackBerry::Platform::IntSize& size)
+ : m_width(size.width())
+ , m_height(size.height())
+{
+}
+
+IntSize::operator BlackBerry::Platform::IntSize() const
+{
+ return BlackBerry::Platform::IntSize(m_width, m_height);
+}
+
+} // namespace WebCore