| Index: third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
|
| diff --git a/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp b/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
|
| index 5f04765aca098135d7a192fe40d54aaa5e83bf28..1f886fc138d70bfe596c589f1cae3ac2db1756e6 100644
|
| --- a/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
|
| @@ -122,18 +122,9 @@ class DrawsRectanglesMatcher
|
| for (unsigned index = 0; index < quads.size(); index++) {
|
| const auto& quadWithColor = quads[index];
|
| const auto& rectWithColor = m_rectsWithColor[index];
|
| - if (!quadWithColor.quad.isRectilinear()) {
|
| - if (listener->IsInterested()) {
|
| - *listener << "at index " << index << " which draws ";
|
| - PrintTo(quadWithColor.quad, listener->stream());
|
| - *listener << " with color "
|
| - << quadWithColor.color.serialized().ascii().data() << "\n";
|
| - }
|
| - return false;
|
| - }
|
|
|
| const FloatRect& rect = quadWithColor.quad.boundingBox();
|
| - if (rect != rectWithColor.rect ||
|
| + if (enclosingIntRect(rect) != enclosingIntRect(rectWithColor.rect) ||
|
| quadWithColor.color != rectWithColor.color) {
|
| if (listener->IsInterested()) {
|
| *listener << "at index " << index << " which draws ";
|
|
|