Commit 35de3fad authored by wangxianzhu's avatar wangxianzhu Committed by Commit bot

Tolerate subpixel differences in checkPaintInvalidationVisualRect()

We snap visual rect to pixels differently in different paths, so ignore
the subpixel differences.

This fixes failure of VisualRectMappingTest.LayoutText on mac with patch
https://codereview.chromium.org/2595323003/#ps160001

BUG=646176

Review-Url: https://codereview.chromium.org/2605163002
Cr-Commit-Position: refs/heads/master@{#440915}
parent 9d105a86
......@@ -33,7 +33,7 @@ class VisualRectMappingTest : public RenderingTest {
PaintLayer::mapRectInPaintInvalidationContainerToBacking(
paintInvalidationContainer, rect);
}
EXPECT_EQ(rect, object.visualRect());
EXPECT_EQ(enclosingIntRect(rect), enclosingIntRect(object.visualRect()));
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment