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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorHighlight.h

Issue 2108803006: Fix inspector overlay when use-zoom-for-dsf is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash when FrameView is null Created 4 years, 5 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: third_party/WebKit/Source/core/inspector/InspectorHighlight.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorHighlight.h b/third_party/WebKit/Source/core/inspector/InspectorHighlight.h
index d8e1ef862ae087126c1c58a36b33484746970331..632d766143ea1da7aad87b8da403d91c95c53caf 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorHighlight.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorHighlight.h
@@ -46,7 +46,7 @@ class CORE_EXPORT InspectorHighlight {
STACK_ALLOCATED();
public:
InspectorHighlight(Node*, const InspectorHighlightConfig&, bool appendElementInfo);
- InspectorHighlight();
+ explicit InspectorHighlight(float scale);
~InspectorHighlight();
static bool getBoxModel(Node*, std::unique_ptr<protocol::DOM::BoxModel>*);
@@ -67,6 +67,7 @@ private:
bool m_showRulers;
bool m_showExtensionLines;
bool m_displayAsMaterial;
+ float m_scale;
};
} // namespace blink
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698