| Index: Source/core/inspector/InspectorHighlight.cpp
|
| diff --git a/Source/core/inspector/InspectorHighlight.cpp b/Source/core/inspector/InspectorHighlight.cpp
|
| index 141ce470697d2a65a340439fa60941bda7eee5a5..1062eec741884504fa2ca4ae1aab4f1c80d5bc17 100644
|
| --- a/Source/core/inspector/InspectorHighlight.cpp
|
| +++ b/Source/core/inspector/InspectorHighlight.cpp
|
| @@ -265,6 +265,20 @@ PassRefPtr<JSONObject> buildElementInfo(Element* element)
|
| elementInfo->setString("nodeWidth", String::number(boundingBox->width()));
|
| elementInfo->setString("nodeHeight", String::number(boundingBox->height()));
|
|
|
| + if (layoutObject->isBox()) {
|
| + LayoutBox* layoutBox = toLayoutBox(layoutObject);
|
| + int marginLeft = (layoutBox->marginLeft().toInt());
|
| + printf("bbb1 %d\n", marginLeft);
|
| + elementInfo->setString("marginLeft", String::number(marginLeft));
|
| +
|
| + } else {
|
| + LayoutInline* layoutInline = toLayoutInline(layoutObject);
|
| + int marginLeft = (layoutInline->marginLeft().toInt());
|
| + printf("bbb %d\n", marginLeft);
|
| + elementInfo->setString("marginLeft", String::number(marginLeft));
|
| + }
|
| +
|
| +
|
| return elementInfo;
|
| }
|
|
|
|
|