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

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: Address comments 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
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/core/inspector/LayoutEditor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/LayoutEditor.h
diff --git a/Source/core/inspector/LayoutEditor.h b/Source/core/inspector/LayoutEditor.h
index a549992460355bce5dea9fadebc0fbc3cdb757be..f24cfd6391cecfd268f2c0c46091deb2cb24fd21 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,11 @@ private:
float m_factor;
CSSPrimitiveValue::UnitType m_valueUnitType;
bool m_isDirty;
+
+ WillBeHeapVector<RefPtrWillBeMember<CSSStyleRule>> m_matchedRules;
+ HashMap<int, String> m_cachedSelectorsInfo;
+ // -1 means "inline style".
+ int m_currentRuleIndex;
};
} // namespace blink
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/core/inspector/LayoutEditor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698