Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1217)

Unified Diff: Source/core/inspector/InspectorHighlight.cpp

Issue 1311783003: Devtools[LayoutEditor]: Rework layout-editor workflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@resize
Patch Set: Rebase on dgozman changes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorHighlight.cpp
diff --git a/Source/core/inspector/InspectorHighlight.cpp b/Source/core/inspector/InspectorHighlight.cpp
index b6a43f0e8d6aad82ac905229370a0bfc3e99ffdd..669f94f097ceb55e10e9b612c47335f2f0057d86 100644
--- a/Source/core/inspector/InspectorHighlight.cpp
+++ b/Source/core/inspector/InspectorHighlight.cpp
@@ -225,11 +225,26 @@ InspectorHighlightConfig::InspectorHighlightConfig()
: showInfo(false)
, showRulers(false)
, showExtensionLines(false)
- , showLayoutEditor(false)
, displayAsMaterial(false)
{
}
+InspectorHighlightConfig::InspectorHighlightConfig(const InspectorHighlightConfig& config)
dgozman 2015/08/28 23:44:10 I think you can just use operator=.
sergeyv 2015/09/02 00:40:58 Done.
+ : content(config.content)
+ , contentOutline(config.contentOutline)
+ , padding(config.padding)
+ , border(config.border)
+ , margin(config.margin)
+ , eventTarget(config.eventTarget)
+ , shape(config.shape)
+ , shapeMargin(config.shapeMargin)
+ , showInfo(config.showInfo)
+ , showRulers(config.showRulers)
+ , showExtensionLines(config.showExtensionLines)
+ , displayAsMaterial(config.displayAsMaterial)
+{
+}
+
InspectorHighlight::InspectorHighlight(Node* node, const InspectorHighlightConfig& highlightConfig, bool appendElementInfo)
: m_highlightPaths(JSONArray::create())
, m_showRulers(highlightConfig.showRulers)
@@ -447,7 +462,6 @@ InspectorHighlightConfig InspectorHighlight::defaultConfig()
config.showInfo = true;
config.showRulers = true;
config.showExtensionLines = true;
- config.showLayoutEditor = false;
config.displayAsMaterial = false;
return config;
}

Powered by Google App Engine
This is Rietveld 408576698