summaryrefslogtreecommitdiffstats
path: root/parser/html/nsHtml5Portability.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parser/html/nsHtml5Portability.cpp')
-rw-r--r--parser/html/nsHtml5Portability.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/html/nsHtml5Portability.cpp b/parser/html/nsHtml5Portability.cpp
index 36c7e758a..0a7c6f845 100644
--- a/parser/html/nsHtml5Portability.cpp
+++ b/parser/html/nsHtml5Portability.cpp
@@ -91,7 +91,7 @@ nsHtml5Portability::releaseString(nsString* str)
bool
nsHtml5Portability::localEqualsBuffer(nsIAtom* local, char16_t* buf, int32_t offset, int32_t length)
{
- return local->Equals(nsDependentSubstring(buf + offset, buf + offset + length));
+ return local->Equals(buf + offset, length);
}
bool