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

Unified Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 2726733004: [Experimental] Implement some part of custom properties in style maps (Closed)
Patch Set: Merge branch 'remove-random' into computedstyle Created 3 years, 9 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/css/CSSComputedStyleDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
index c4c837b671169bfb69275e7cf0c9a2cef2cd12ae..de265523670001da9c92d5122c5bc6ba57531c91 100644
--- a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
@@ -177,16 +177,6 @@ const CSSPropertyID computedPropertyArray[] = {
CSSPropertyScrollSnapDestination, CSSPropertyTranslate, CSSPropertyRotate,
CSSPropertyScale, CSSPropertyCaretColor};
-const Vector<CSSPropertyID>& computableProperties() {
- DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
- if (properties.isEmpty()) {
- CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(
- computedPropertyArray, WTF_ARRAY_LENGTH(computedPropertyArray),
- properties);
- }
- return properties;
-}
-
CSSValueID cssIdentifierForFontSizeKeyword(int keywordSize) {
DCHECK_NE(keywordSize, 0);
DCHECK_LE(keywordSize, 8);
@@ -277,6 +267,17 @@ bool isLayoutDependent(CSSPropertyID propertyID,
} // namespace
+const Vector<CSSPropertyID>&
+CSSComputedStyleDeclaration::computableProperties() {
+ DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
+ if (properties.isEmpty()) {
+ CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(
+ computedPropertyArray, WTF_ARRAY_LENGTH(computedPropertyArray),
+ properties);
+ }
+ return properties;
+}
+
CSSComputedStyleDeclaration::CSSComputedStyleDeclaration(
Node* n,
bool allowVisitedStyle,

Powered by Google App Engine
This is Rietveld 408576698