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

Unified Diff: Source/core/dom/MutationObserver.cpp

Issue 534133002: [WIP] bindings: Introduce PropertyBag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MutationObserver.cpp
diff --git a/Source/core/dom/MutationObserver.cpp b/Source/core/dom/MutationObserver.cpp
index bccc8c9ed6d3c75913be715038c83e44016d237f..6e5ed53f839a6c85bab033afceb53fcb2b3c9de9 100644
--- a/Source/core/dom/MutationObserver.cpp
+++ b/Source/core/dom/MutationObserver.cpp
@@ -85,36 +85,36 @@ void MutationObserver::observe(Node* node, const Dictionary& optionsDictionary,
MutationObserverOptions options = 0;
bool attributeOldValue = false;
- bool attributeOldValuePresent = DictionaryHelper::get(optionsDictionary, "attributeOldValue", attributeOldValue);
+ bool attributeOldValuePresent = optionsDictionary.get("attributeOldValue", attributeOldValue);
if (attributeOldValue)
options |= AttributeOldValue;
HashSet<AtomicString> attributeFilter;
- bool attributeFilterPresent = DictionaryHelper::get(optionsDictionary, "attributeFilter", attributeFilter);
+ bool attributeFilterPresent = optionsDictionary.get("attributeFilter", attributeFilter);
if (attributeFilterPresent)
options |= AttributeFilter;
bool attributes = false;
- bool attributesPresent = DictionaryHelper::get(optionsDictionary, "attributes", attributes);
+ bool attributesPresent = optionsDictionary.get("attributes", attributes);
if (attributes || (!attributesPresent && (attributeOldValuePresent || attributeFilterPresent)))
options |= Attributes;
bool characterDataOldValue = false;
- bool characterDataOldValuePresent = DictionaryHelper::get(optionsDictionary, "characterDataOldValue", characterDataOldValue);
+ bool characterDataOldValuePresent = optionsDictionary.get("characterDataOldValue", characterDataOldValue);
if (characterDataOldValue)
options |= CharacterDataOldValue;
bool characterData = false;
- bool characterDataPresent = DictionaryHelper::get(optionsDictionary, "characterData", characterData);
+ bool characterDataPresent = optionsDictionary.get("characterData", characterData);
if (characterData || (!characterDataPresent && characterDataOldValuePresent))
options |= CharacterData;
bool childListValue = false;
- if (DictionaryHelper::get(optionsDictionary, "childList", childListValue) && childListValue)
+ if (optionsDictionary.get("childList", childListValue) && childListValue)
options |= ChildList;
bool subtreeValue = false;
- if (DictionaryHelper::get(optionsDictionary, "subtree", subtreeValue) && subtreeValue)
+ if (optionsDictionary.get("subtree", subtreeValue) && subtreeValue)
options |= Subtree;
if (!(options & Attributes)) {
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698