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

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

Issue 2405153002: Remove CSS.unregisterProperty as the WG resolved to remove it for now (Closed)
Patch Set: Created 4 years, 2 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/PropertyRegistration.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
index b6725843b9c8e31d10a403fa714960f4ba843660..479820a000dcac242efc7a86d8245f19806452c9 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
+++ b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
@@ -128,25 +128,4 @@ void PropertyRegistration::registerProperty(
StyleChangeReason::PropertyRegistration));
}
-void PropertyRegistration::unregisterProperty(
- ExecutionContext* executionContext,
- const String& property,
- ExceptionState& exceptionState) {
- Document* document = toDocument(executionContext);
- PropertyRegistry& registry = *document->propertyRegistry();
- AtomicString atomicProperty(property);
- if (!registry.registration(atomicProperty)) {
- exceptionState.throwDOMException(
- NotFoundError,
- "CSS.unregisterProperty() called with non-registered property " +
- property);
- return;
- }
- registry.unregisterProperty(atomicProperty);
-
- document->setNeedsStyleRecalc(SubtreeStyleChange,
- StyleChangeReasonForTracing::create(
- StyleChangeReason::PropertyUnregistration));
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/PropertyRegistration.h ('k') | third_party/WebKit/Source/core/css/PropertyRegistration.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698