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

Unified Diff: third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp

Issue 2054633002: [Typed OM] Implement FilteredComputedStylePropertyMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT FilteredCSPMap Created 4 years, 6 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/cssom/ComputedStylePropertyMap.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp b/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp
index 08a1031587f3dfe7bfc1eefcc28a209a0e487d06..f0cbe2b848f31f97e7f9beb71db0ff6bce653295 100644
--- a/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.cpp
@@ -9,7 +9,7 @@
namespace blink {
-CSSStyleValueVector ComputedStylePropertyMap::getAll(CSSPropertyID propertyID)
+CSSStyleValueVector ComputedStylePropertyMap::getAllInternal(CSSPropertyID propertyID)
{
const CSSValue* cssValue = m_computedStyleDeclaration->getPropertyCSSValueInternal(propertyID);
if (!cssValue)
@@ -17,6 +17,14 @@ CSSStyleValueVector ComputedStylePropertyMap::getAll(CSSPropertyID propertyID)
return StyleValueFactory::cssValueToStyleValueVector(propertyID, *cssValue);
}
+CSSStyleValueVector ComputedStylePropertyMap::getAllInternal(AtomicString customPropertyName)
+{
+ const CSSValue* cssValue = m_computedStyleDeclaration->getPropertyCSSValueInternal(customPropertyName);
+ if (!cssValue)
+ return CSSStyleValueVector();
+ return StyleValueFactory::cssValueToStyleValueVector(CSSPropertyInvalid, *cssValue);
+}
+
Vector<String> ComputedStylePropertyMap::getProperties()
{
Vector<String> result;

Powered by Google App Engine
This is Rietveld 408576698