summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/property_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/property_registry.h')
-rw-r--r--chromium/third_party/blink/renderer/core/css/property_registry.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/property_registry.h b/chromium/third_party/blink/renderer/core/css/property_registry.h
index b9dc7a10ef4..6f7f0503db4 100644
--- a/chromium/third_party/blink/renderer/core/css/property_registry.h
+++ b/chromium/third_party/blink/renderer/core/css/property_registry.h
@@ -16,7 +16,9 @@ class CORE_EXPORT PropertyRegistry : public GarbageCollected<PropertyRegistry> {
using RegistrationMap =
HeapHashMap<AtomicString, Member<PropertyRegistration>>;
- static PropertyRegistry* Create() { return new PropertyRegistry(); }
+ static PropertyRegistry* Create() {
+ return MakeGarbageCollected<PropertyRegistry>();
+ }
void RegisterProperty(const AtomicString&, PropertyRegistration&);
const PropertyRegistration* Registration(const AtomicString&) const;
@@ -36,6 +38,9 @@ class CORE_EXPORT PropertyRegistry : public GarbageCollected<PropertyRegistry> {
const AtomicString& property_name,
const CSSValue*);
+ void MarkReferenced(const AtomicString&) const;
+ bool WasReferenced(const AtomicString&) const;
+
private:
RegistrationMap registrations_;
};