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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSVariableData.h

Issue 2106073005: Add fast-path for propagated variable changes (WIP) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@+pointer_events_fastpath_5
Patch Set: Rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CSSVariableData_h 5 #ifndef CSSVariableData_h
6 #define CSSVariableData_h 6 #define CSSVariableData_h
7 7
8 #include "core/css/StylePropertySet.h" 8 #include "core/css/StylePropertySet.h"
9 #include "core/css/parser/CSSParserToken.h" 9 #include "core/css/parser/CSSParserToken.h"
10 #include "core/css/parser/CSSParserTokenRange.h" 10 #include "core/css/parser/CSSParserTokenRange.h"
(...skipping 24 matching lines...) Expand all
35 bool isAnimationTainted) { 35 bool isAnimationTainted) {
36 return adoptRef(new CSSVariableData( 36 return adoptRef(new CSSVariableData(
37 resolvedTokens, unresolvedData.m_backingString, isAnimationTainted)); 37 resolvedTokens, unresolvedData.m_backingString, isAnimationTainted));
38 } 38 }
39 39
40 CSSParserTokenRange tokenRange() const { return m_tokens; } 40 CSSParserTokenRange tokenRange() const { return m_tokens; }
41 41
42 const Vector<CSSParserToken>& tokens() const { return m_tokens; } 42 const Vector<CSSParserToken>& tokens() const { return m_tokens; }
43 43
44 bool operator==(const CSSVariableData& other) const; 44 bool operator==(const CSSVariableData& other) const;
45 bool operator!=(const CSSVariableData& other) const {
46 return !(*this == other);
47 }
45 48
46 bool isAnimationTainted() const { return m_isAnimationTainted; } 49 bool isAnimationTainted() const { return m_isAnimationTainted; }
47 50
48 bool needsVariableResolution() const { return m_needsVariableResolution; } 51 bool needsVariableResolution() const { return m_needsVariableResolution; }
49 52
50 const CSSValue* parseForSyntax(const CSSSyntaxDescriptor&) const; 53 const CSSValue* parseForSyntax(const CSSSyntaxDescriptor&) const;
51 54
52 StylePropertySet* propertySet(); 55 StylePropertySet* propertySet();
53 56
54 private: 57 private:
(...skipping 25 matching lines...) Expand all
80 const bool m_needsVariableResolution; 83 const bool m_needsVariableResolution;
81 84
82 // Parsed representation for @apply 85 // Parsed representation for @apply
83 bool m_cachedPropertySet; 86 bool m_cachedPropertySet;
84 Persistent<StylePropertySet> m_propertySet; 87 Persistent<StylePropertySet> m_propertySet;
85 }; 88 };
86 89
87 } // namespace blink 90 } // namespace blink
88 91
89 #endif // CSSVariableData_h 92 #endif // CSSVariableData_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698