Account for RenderLayer position when optimizing display list

The page_rect passed to DisplayListOptimizer is relative to the
RenderLayer origin, but the display list components are relative to the
page origin. Before passing the page rect to the display list, we
translate it by the RenderLayer position.
This commit is contained in:
Martin Robinson 2014-10-03 14:24:24 -07:00
parent 479d8567d1
commit ec29723f2b
4 changed files with 24 additions and 7 deletions

View file

@ -0,0 +1,5 @@
<html>
<body>
<div style="background: green; position: absolute; top: 0px; left: 512px; width: 20px; height: 20px;"></div>
</body>
</html>