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:
Henri Sivonen
2010-12-09 11:27:58 +02:00
parent b40e883623
commit d3fc35ebd5
21 changed files with 694 additions and 618 deletions

View File

@@ -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 {