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

Unified Diff: Source/core/inspector/LayoutEditor.h

Issue 1317913004: Devtools [LayoutEditor]: show selector info and highlight affected nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cursor2
Patch Set: Rebase Created 5 years, 3 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/LayoutEditor.h
diff --git a/Source/core/inspector/LayoutEditor.h b/Source/core/inspector/LayoutEditor.h
index a549992460355bce5dea9fadebc0fbc3cdb757be..5a8aa209c50e6867982b7c6237d3b5c92e1ab4b7 100644
--- a/Source/core/inspector/LayoutEditor.h
+++ b/Source/core/inspector/LayoutEditor.h
@@ -8,6 +8,7 @@
#include "core/CSSPropertyNames.h"
#include "core/CoreExport.h"
#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/CSSStyleRule.h"
#include "core/dom/Element.h"
#include "platform/heap/Handle.h"
#include "wtf/PassOwnPtr.h"
@@ -36,6 +37,9 @@ public:
void overlayPropertyChanged(float);
void overlayEndedPropertyChange();
void clearSelection(bool);
+ void nextSelector();
+ void previousSelector();
+ String currentSelectorInfo();
DECLARE_TRACE();
@@ -44,6 +48,7 @@ private:
RefPtrWillBeRawPtr<CSSPrimitiveValue> getPropertyCSSValue(CSSPropertyID) const;
PassRefPtr<JSONObject> createValueDescription(const String&) const;
void appendAnchorFor(JSONArray*, const String&, const String&, const FloatPoint&, const FloatPoint&) const;
+ void initializeCSSRules();
RefPtrWillBeMember<Element> m_element;
RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
@@ -53,6 +58,9 @@ private:
float m_factor;
CSSPrimitiveValue::UnitType m_valueUnitType;
bool m_isDirty;
+
+ WillBeHeapVector<RefPtrWillBeMember<CSSStyleRule>> m_matchedRules;
+ int m_currentRuleIndex;
dgozman 2015/09/02 18:58:57 Comment that -1 means inline style.
sergeyv 2015/09/02 20:22:18 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698