зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1861232 - Remove unused interner argument from elementNameByBuffer. r=dom-core,jjaschke,CanadaHonk
Differential Revision: https://phabricator.services.mozilla.com/D191970
This commit is contained in:
Родитель
e80b8d5d73
Коммит
f304926168
|
@ -158,7 +158,7 @@ public final class ElementName
|
|||
}
|
||||
|
||||
@Inline static ElementName elementNameByBuffer(@NoLength char[] buf,
|
||||
int length, Interner interner) {
|
||||
int length) {
|
||||
@Unsigned int hash = ElementName.bufToHash(buf, length);
|
||||
int[] hashes;
|
||||
hashes = ElementName.ELEMENT_HASHES;
|
||||
|
|
|
@ -786,7 +786,7 @@ public class Tokenizer implements Locator, Locator2 {
|
|||
}
|
||||
@Auto char[] asArray = Portability.newCharArrayFromLocal(endTagExpectation);
|
||||
this.endTagExpectation = ElementName.elementNameByBuffer(asArray,
|
||||
asArray.length, interner);
|
||||
asArray.length);
|
||||
assert this.endTagExpectation != null;
|
||||
endTagExpectationToArray();
|
||||
}
|
||||
|
@ -1227,7 +1227,7 @@ public class Tokenizer implements Locator, Locator2 {
|
|||
tagName = nonInternedTagName;
|
||||
}
|
||||
} else {
|
||||
tagName = ElementName.elementNameByBuffer(strBuf, strBufLen, interner);
|
||||
tagName = ElementName.elementNameByBuffer(strBuf, strBufLen);
|
||||
if (tagName == null) {
|
||||
nonInternedTagName.setNameForNonInterned(Portability.newLocalNameFromBuffer(strBuf, strBufLen,
|
||||
interner)
|
||||
|
|
|
@ -118,8 +118,8 @@ class nsHtml5ElementName {
|
|||
return -1;
|
||||
}
|
||||
|
||||
inline static nsHtml5ElementName* elementNameByBuffer(
|
||||
char16_t* buf, int32_t length, nsHtml5AtomTable* interner) {
|
||||
inline static nsHtml5ElementName* elementNameByBuffer(char16_t* buf,
|
||||
int32_t length) {
|
||||
uint32_t hash = nsHtml5ElementName::bufToHash(buf, length);
|
||||
jArray<int32_t, int32_t> hashes;
|
||||
hashes = nsHtml5ElementName::ELEMENT_HASHES;
|
||||
|
|
|
@ -292,8 +292,7 @@ void nsHtml5Tokenizer::strBufToElementNameString() {
|
|||
tagName = nonInternedTagName;
|
||||
}
|
||||
} else {
|
||||
tagName =
|
||||
nsHtml5ElementName::elementNameByBuffer(strBuf, strBufLen, interner);
|
||||
tagName = nsHtml5ElementName::elementNameByBuffer(strBuf, strBufLen);
|
||||
if (!tagName) {
|
||||
nonInternedTagName->setNameForNonInterned(
|
||||
nsHtml5Portability::newLocalNameFromBuffer(strBuf, strBufLen,
|
||||
|
|
Загрузка…
Ссылка в новой задаче