Bug 1550422 - P20. Add missing namespace. r?mattwoodrow draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 16 May 2019 23:41:54 +1000
changeset 2008596 11ee7cc6ced3d845f3f44285774af0f800ce8f2a
parent 2008595 e918530cf83b5fce77e585bf7ae55edec2c75c74
child 2008597 bbe6abfb20cbc75134a697755e03d5366c171a33
push id363925
push userjyavenard@mozilla.com
push dateSat, 18 May 2019 07:53:18 +0000
treeherdertry@5082cd581229 [default view] [failures only]
reviewersmattwoodrow
bugs1550422
milestone68.0a1
Bug 1550422 - P20. Add missing namespace. r?mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D31463
gfx/tests/gtest/TestRect.cpp
--- a/gfx/tests/gtest/TestRect.cpp
+++ b/gfx/tests/gtest/TestRect.cpp
@@ -512,38 +512,38 @@ static void TestIntersectionLogicalHelpe
   EXPECT_TRUE(isNonEmpty == rectDebug.IntersectRect(rect1, rect2));
   EXPECT_TRUE(rectDebug.IsEqualEdges(nsRect(xR, yR, wR, hR)));
 
   mozilla::LogicalRect r1(mozilla::WritingMode(), rect1.X(), rect1.Y(),
                           rect1.Width(), rect1.Height());
   mozilla::LogicalRect r2(mozilla::WritingMode(), rect2.X(), rect2.Y(),
                           rect2.Width(), rect2.Height());
   EXPECT_TRUE(isNonEmpty == r1.IntersectRect(r1, r2));
-  EXPECT_TRUE(rectDebug.IsEqualEdges(
-      nsRect(r1.IStart(WritingMode()), r1.BStart(WritingMode()),
-             r1.ISize(WritingMode()), r1.BSize(WritingMode()))));
+  EXPECT_TRUE(rectDebug.IsEqualEdges(nsRect(
+      r1.IStart(mozilla::WritingMode()), r1.BStart(mozilla::WritingMode()),
+      r1.ISize(mozilla::WritingMode()), r1.BSize(mozilla::WritingMode()))));
 
   mozilla::LogicalRect r3(mozilla::WritingMode(), rect1.X(), rect1.Y(),
                           rect1.Width(), rect1.Height());
   mozilla::LogicalRect r4(mozilla::WritingMode(), rect2.X(), rect2.Y(),
                           rect2.Width(), rect2.Height());
   EXPECT_TRUE(isNonEmpty == r4.IntersectRect(r3, r4));
-  EXPECT_TRUE(rectDebug.IsEqualEdges(
-      nsRect(r4.IStart(WritingMode()), r4.BStart(WritingMode()),
-             r4.ISize(WritingMode()), r4.BSize(WritingMode()))));
+  EXPECT_TRUE(rectDebug.IsEqualEdges(nsRect(
+      r4.IStart(mozilla::WritingMode()), r4.BStart(mozilla::WritingMode()),
+      r4.ISize(mozilla::WritingMode()), r4.BSize(mozilla::WritingMode()))));
 
   mozilla::LogicalRect r5(mozilla::WritingMode(), rect1.X(), rect1.Y(),
                           rect1.Width(), rect1.Height());
   mozilla::LogicalRect r6(mozilla::WritingMode(), rect2.X(), rect2.Y(),
                           rect2.Width(), rect2.Height());
   mozilla::LogicalRect r7(mozilla::WritingMode(), 0, 0, 1, 1);
   EXPECT_TRUE(isNonEmpty == r7.IntersectRect(r5, r6));
-  EXPECT_TRUE(rectDebug.IsEqualEdges(
-      nsRect(r7.IStart(WritingMode()), r7.BStart(WritingMode()),
-             r7.ISize(WritingMode()), r7.BSize(WritingMode()))));
+  EXPECT_TRUE(rectDebug.IsEqualEdges(nsRect(
+      r7.IStart(mozilla::WritingMode()), r7.BStart(mozilla::WritingMode()),
+      r7.ISize(mozilla::WritingMode()), r7.BSize(mozilla::WritingMode()))));
 }
 
 static void TestIntersectionLogical(nscoord x1, nscoord y1, nscoord w1,
                                     nscoord h1, nscoord x2, nscoord y2,
                                     nscoord w2, nscoord h2, nscoord xR,
                                     nscoord yR, nscoord wR, nscoord hR,
                                     bool isNonEmpty) {
   TestIntersectionLogicalHelper(x1, y1, w1, h1, x2, y2, w2, h2, xR, yR, wR, hR,