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

Unified Diff: Source/core/html/parser/HTMLIdentifier.cpp

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: Removed AtomicString from HTMLMetaCharsetParser Created 7 years, 1 month 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: Source/core/html/parser/HTMLIdentifier.cpp
diff --git a/Source/core/html/parser/HTMLIdentifier.cpp b/Source/core/html/parser/HTMLIdentifier.cpp
index 9b91cfc276723168b5271ea677a92bed365baee5..ca1fcc232b4aef3e94e986fd54ea04fcec906d15 100644
--- a/Source/core/html/parser/HTMLIdentifier.cpp
+++ b/Source/core/html/parser/HTMLIdentifier.cpp
@@ -27,6 +27,7 @@
#include "core/html/parser/HTMLIdentifier.h"
#include "HTMLNames.h"
+#include "core/html/parser/HTMLParserIdioms.h"
#include "wtf/HashMap.h"
#include "wtf/MainThread.h"
#include "wtf/text/StringHash.h"
@@ -46,6 +47,16 @@ static IdentifierTable& identifierTable()
return table;
}
+bool HTMLIdentifier::operator==(const QualifiedName& b) const
+{
+ return threadSafeMatch(*this, b);
+}
+
+bool HTMLIdentifier::operator!=(const QualifiedName& b) const
+{
+ return !(*this == b);
+}
+
#ifndef NDEBUG
bool HTMLIdentifier::isKnown(const StringImpl* string)
{

Powered by Google App Engine
This is Rietveld 408576698