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

Side by Side Diff: Source/core/inspector/LayoutEditor.h

Issue 1308383007: Devtools [LayoutEditor]: Show medias for the rules with the same selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@affected2
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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutEditor_h 5 #ifndef LayoutEditor_h
6 #define LayoutEditor_h 6 #define LayoutEditor_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 DECLARE_TRACE(); 45 DECLARE_TRACE();
46 46
47 private: 47 private:
48 LayoutEditor(InspectorCSSAgent*, InspectorDOMAgent*); 48 LayoutEditor(InspectorCSSAgent*, InspectorDOMAgent*);
49 RefPtrWillBeRawPtr<CSSPrimitiveValue> getPropertyCSSValue(CSSPropertyID) con st; 49 RefPtrWillBeRawPtr<CSSPrimitiveValue> getPropertyCSSValue(CSSPropertyID) con st;
50 PassRefPtr<JSONObject> createValueDescription(const String&) const; 50 PassRefPtr<JSONObject> createValueDescription(const String&) const;
51 void appendAnchorFor(JSONArray*, const String&, const String&, const FloatPo int&, const FloatPoint&) const; 51 void appendAnchorFor(JSONArray*, const String&, const String&, const FloatPo int&, const FloatPoint&) const;
52 void initializeCSSRules(); 52 void initializeCSSRules();
53 53
54 void collectMediaQueriesFromRule(CSSRule*, Vector<String>&);
55 PassOwnPtr<Vector<String>> buildMediaListChain(CSSRule*);
56
54 RefPtrWillBeMember<Element> m_element; 57 RefPtrWillBeMember<Element> m_element;
55 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; 58 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
56 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 59 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
57 CSSPropertyID m_changingProperty; 60 CSSPropertyID m_changingProperty;
58 float m_propertyInitialValue; 61 float m_propertyInitialValue;
59 float m_factor; 62 float m_factor;
60 CSSPrimitiveValue::UnitType m_valueUnitType; 63 CSSPrimitiveValue::UnitType m_valueUnitType;
61 bool m_isDirty; 64 bool m_isDirty;
62 65
63 WillBeHeapVector<RefPtrWillBeMember<CSSStyleRule>> m_matchedRules; 66 WillBeHeapVector<RefPtrWillBeMember<CSSStyleRule>> m_matchedRules;
64 HashMap<int, String> m_cachedSelectorsInfo; 67 HashMap<int, String> m_cachedSelectorsInfo;
65 // -1 means "inline style". 68 // -1 means "inline style".
66 int m_currentRuleIndex; 69 int m_currentRuleIndex;
67 }; 70 };
68 71
69 } // namespace blink 72 } // namespace blink
70 73
71 74
72 #endif // !defined(LayoutEditor_h) 75 #endif // !defined(LayoutEditor_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698