Bug 595643 - Make space characters reconstruct active formatting elements when frameset-ok is OK. rs=jonas, a=blocking2.0-betaN.

This commit is contained in:
Henri Sivonen 2010-09-15 11:37:55 +03:00
parent 212a2f8dfc
commit 532db120d1
2 changed files with 2 additions and 3 deletions

View File

@ -893,7 +893,6 @@ public abstract class TreeBuilder<T> implements TokenHandler,
*/
start = i + 1;
continue;
case FRAMESET_OK:
case IN_HEAD:
case IN_HEAD_NOSCRIPT:
case AFTER_HEAD:
@ -904,10 +903,10 @@ public abstract class TreeBuilder<T> implements TokenHandler,
* Append the character to the current node.
*/
continue;
case FRAMESET_OK:
case IN_BODY:
case IN_CELL:
case IN_CAPTION:
// XXX is this dead code?
if (start < i) {
accumulateCharacters(buf, start, i
- start);

View File

@ -227,7 +227,6 @@ nsHtml5TreeBuilder::characters(const PRUnichar* buf, PRInt32 start, PRInt32 leng
start = i + 1;
continue;
}
case NS_HTML5TREE_BUILDER_FRAMESET_OK:
case NS_HTML5TREE_BUILDER_IN_HEAD:
case NS_HTML5TREE_BUILDER_IN_HEAD_NOSCRIPT:
case NS_HTML5TREE_BUILDER_AFTER_HEAD:
@ -236,6 +235,7 @@ nsHtml5TreeBuilder::characters(const PRUnichar* buf, PRInt32 start, PRInt32 leng
case NS_HTML5TREE_BUILDER_AFTER_FRAMESET: {
continue;
}
case NS_HTML5TREE_BUILDER_FRAMESET_OK:
case NS_HTML5TREE_BUILDER_IN_BODY:
case NS_HTML5TREE_BUILDER_IN_CELL:
case NS_HTML5TREE_BUILDER_IN_CAPTION: {