| Index: third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp b/third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp
|
| index 09c2e5836bcb30d8d2d2abba45db0a6eeb168518..06c55d4e01060437dacc16b25c02efe363d8ca38 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp
|
| @@ -218,6 +218,7 @@ InspectorHighlight::InspectorHighlight()
|
| , m_showRulers(false)
|
| , m_showExtensionLines(false)
|
| , m_displayAsMaterial(false)
|
| + , m_windowToViewportScale(1.0f)
|
| {
|
| }
|
|
|
| @@ -229,11 +230,12 @@ InspectorHighlightConfig::InspectorHighlightConfig()
|
| {
|
| }
|
|
|
| -InspectorHighlight::InspectorHighlight(Node* node, const InspectorHighlightConfig& highlightConfig, bool appendElementInfo)
|
| +InspectorHighlight::InspectorHighlight(Node* node, const InspectorHighlightConfig& highlightConfig, bool appendElementInfo, float windowToViewportScale)
|
| : m_highlightPaths(protocol::ListValue::create())
|
| , m_showRulers(highlightConfig.showRulers)
|
| , m_showExtensionLines(highlightConfig.showExtensionLines)
|
| , m_displayAsMaterial(highlightConfig.displayAsMaterial)
|
| + , m_windowToViewportScale(windowToViewportScale)
|
| {
|
| appendPathsForShapeOutside(node, highlightConfig);
|
| appendNodeHighlight(node, highlightConfig);
|
| @@ -330,6 +332,7 @@ std::unique_ptr<protocol::DictionaryValue> InspectorHighlight::asProtocolValue()
|
| if (m_elementInfo)
|
| object->setValue("elementInfo", m_elementInfo->clone());
|
| object->setBoolean("displayAsMaterial", m_displayAsMaterial);
|
| + object->setNumber("windowToViewportScale", m_windowToViewportScale);
|
| return object;
|
| }
|
|
|
|
|