Commit d9a646e1 authored by kouhei@chromium.org's avatar kouhei@chromium.org

annotatedInvalidationRects should be in format x,y,w,h

This fixes the FrameViewer json serialization of annotatedInvalidationRects.
This CL fixes the format from (x, y, maxX, maxY) to (x, y, width, height).

BUG=402033

Review URL: https://codereview.chromium.org/659003002

git-svn-id: svn://svn.chromium.org/blink/trunk@183829 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a703f2e9
...@@ -83,8 +83,8 @@ void GraphicsLayerDebugInfo::appendAnnotatedInvalidateRects(JSONObject* jsonObje ...@@ -83,8 +83,8 @@ void GraphicsLayerDebugInfo::appendAnnotatedInvalidateRects(JSONObject* jsonObje
const FloatRect& rect = annotatedRect.rect; const FloatRect& rect = annotatedRect.rect;
rectArray->pushNumber(rect.x()); rectArray->pushNumber(rect.x());
rectArray->pushNumber(rect.y()); rectArray->pushNumber(rect.y());
rectArray->pushNumber(rect.maxX()); rectArray->pushNumber(rect.width());
rectArray->pushNumber(rect.maxY()); rectArray->pushNumber(rect.height());
rectContainer->setArray("geometry_rect", rectArray); rectContainer->setArray("geometry_rect", rectArray);
rectContainer->setString("reason", paintInvalidationReasonToString(annotatedRect.reason)); rectContainer->setString("reason", paintInvalidationReasonToString(annotatedRect.reason));
jsonArray->pushObject(rectContainer); jsonArray->pushObject(rectContainer);
......
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