Bug 612529 part 2 - Rework how scopingness and specialness is handled in stack nodes; refresh the set of scoping elements to spec. rs=jonas, a=blocking2.0-betaN.
This commit is contained in:
@@ -5727,7 +5727,6 @@ public class Tokenizer implements Locator {
|
||||
// ]NOCPP]
|
||||
|
||||
private void initDoctypeFields() {
|
||||
Portability.releaseLocal(doctypeName);
|
||||
doctypeName = "";
|
||||
if (systemIdentifier != null) {
|
||||
Portability.releaseString(systemIdentifier);
|
||||
@@ -6034,7 +6033,6 @@ public class Tokenizer implements Locator {
|
||||
* Create a new DOCTYPE token. Set its force-quirks flag
|
||||
* to on.
|
||||
*/
|
||||
Portability.releaseLocal(doctypeName);
|
||||
doctypeName = "";
|
||||
if (systemIdentifier != null) {
|
||||
Portability.releaseString(systemIdentifier);
|
||||
@@ -6434,7 +6432,6 @@ public class Tokenizer implements Locator {
|
||||
// It is OK and sufficient to release these here, since
|
||||
// there's no way out of the doctype states than through paths
|
||||
// that call this method.
|
||||
Portability.releaseLocal(doctypeName);
|
||||
doctypeName = null;
|
||||
Portability.releaseString(publicIdentifier);
|
||||
publicIdentifier = null;
|
||||
@@ -6494,7 +6491,6 @@ public class Tokenizer implements Locator {
|
||||
public void end() throws SAXException {
|
||||
strBuf = null;
|
||||
longStrBuf = null;
|
||||
Portability.releaseLocal(doctypeName);
|
||||
doctypeName = null;
|
||||
if (systemIdentifier != null) {
|
||||
Portability.releaseString(systemIdentifier);
|
||||
@@ -6642,7 +6638,6 @@ public class Tokenizer implements Locator {
|
||||
endTag = other.endTag;
|
||||
shouldSuspend = false;
|
||||
|
||||
Portability.releaseLocal(doctypeName);
|
||||
if (other.doctypeName == null) {
|
||||
doctypeName = null;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user