mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 551344 part 3 supplement - Rename the getter for the length of list of active formatting elements in the HTML5 parser. r=jonas.
This commit is contained in:
parent
9986f24b36
commit
b35a238d49
@ -154,9 +154,9 @@ public class StateSnapshot<T> implements TreeBuilderState<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see nu.validator.htmlparser.impl.TreeBuilderState#getListLength()
|
||||
* @see nu.validator.htmlparser.impl.TreeBuilderState#getListOfActiveFormattingElementsLength()
|
||||
*/
|
||||
public int getListLength() {
|
||||
public int getListOfActiveFormattingElementsLength() {
|
||||
return listOfActiveFormattingElements.length;
|
||||
}
|
||||
|
||||
|
@ -5353,7 +5353,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
StackNode<T>[] stackCopy = snapshot.getStack();
|
||||
int stackLen = snapshot.getStackLength();
|
||||
StackNode<T>[] listCopy = snapshot.getListOfActiveFormattingElements();
|
||||
int listLen = snapshot.getListLength();
|
||||
int listLen = snapshot.getListOfActiveFormattingElementsLength();
|
||||
|
||||
if (stackLen != currentPtr + 1
|
||||
|| listLen != listPtr + 1
|
||||
@ -5394,7 +5394,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
StackNode<T>[] stackCopy = snapshot.getStack();
|
||||
int stackLen = snapshot.getStackLength();
|
||||
StackNode<T>[] listCopy = snapshot.getListOfActiveFormattingElements();
|
||||
int listLen = snapshot.getListLength();
|
||||
int listLen = snapshot.getListOfActiveFormattingElementsLength();
|
||||
|
||||
for (int i = 0; i <= listPtr; i++) {
|
||||
if (listOfActiveFormattingElements[i] != null) {
|
||||
@ -5552,9 +5552,9 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see nu.validator.htmlparser.impl.TreeBuilderState#getListLength()
|
||||
* @see nu.validator.htmlparser.impl.TreeBuilderState#getListOfActiveFormattingElementsLength()
|
||||
*/
|
||||
public int getListLength() {
|
||||
public int getListOfActiveFormattingElementsLength() {
|
||||
return listPtr + 1;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ class nsAHtml5TreeBuilderState {
|
||||
|
||||
virtual PRInt32 getStackLength() = 0;
|
||||
|
||||
virtual PRInt32 getListLength() = 0;
|
||||
virtual PRInt32 getListOfActiveFormattingElementsLength() = 0;
|
||||
|
||||
virtual nsIContent** getFormPointer() = 0;
|
||||
|
||||
|
@ -134,7 +134,7 @@ nsHtml5StateSnapshot::isQuirks()
|
||||
}
|
||||
|
||||
PRInt32
|
||||
nsHtml5StateSnapshot::getListLength()
|
||||
nsHtml5StateSnapshot::getListOfActiveFormattingElementsLength()
|
||||
{
|
||||
return listOfActiveFormattingElements.length;
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ class nsHtml5StateSnapshot : public nsAHtml5TreeBuilderState
|
||||
PRInt32 getForeignFlag();
|
||||
PRBool isNeedToDropLF();
|
||||
PRBool isQuirks();
|
||||
PRInt32 getListLength();
|
||||
PRInt32 getListOfActiveFormattingElementsLength();
|
||||
PRInt32 getStackLength();
|
||||
~nsHtml5StateSnapshot();
|
||||
static void initializeStatics();
|
||||
|
@ -3864,7 +3864,7 @@ nsHtml5TreeBuilder::snapshotMatches(nsAHtml5TreeBuilderState* snapshot)
|
||||
jArray<nsHtml5StackNode*,PRInt32> stackCopy = snapshot->getStack();
|
||||
PRInt32 stackLen = snapshot->getStackLength();
|
||||
jArray<nsHtml5StackNode*,PRInt32> listCopy = snapshot->getListOfActiveFormattingElements();
|
||||
PRInt32 listLen = snapshot->getListLength();
|
||||
PRInt32 listLen = snapshot->getListOfActiveFormattingElementsLength();
|
||||
if (stackLen != currentPtr + 1 || listLen != listPtr + 1 || formPointer != snapshot->getFormPointer() || headPointer != snapshot->getHeadPointer() || mode != snapshot->getMode() || originalMode != snapshot->getOriginalMode() || framesetOk != snapshot->isFramesetOk() || foreignFlag != snapshot->getForeignFlag() || needToDropLF != snapshot->isNeedToDropLF() || quirks != snapshot->isQuirks()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
@ -3892,7 +3892,7 @@ nsHtml5TreeBuilder::loadState(nsAHtml5TreeBuilderState* snapshot, nsHtml5AtomTab
|
||||
jArray<nsHtml5StackNode*,PRInt32> stackCopy = snapshot->getStack();
|
||||
PRInt32 stackLen = snapshot->getStackLength();
|
||||
jArray<nsHtml5StackNode*,PRInt32> listCopy = snapshot->getListOfActiveFormattingElements();
|
||||
PRInt32 listLen = snapshot->getListLength();
|
||||
PRInt32 listLen = snapshot->getListOfActiveFormattingElementsLength();
|
||||
for (PRInt32 i = 0; i <= listPtr; i++) {
|
||||
if (!!listOfActiveFormattingElements[i]) {
|
||||
listOfActiveFormattingElements[i]->release();
|
||||
@ -4017,7 +4017,7 @@ nsHtml5TreeBuilder::isQuirks()
|
||||
}
|
||||
|
||||
PRInt32
|
||||
nsHtml5TreeBuilder::getListLength()
|
||||
nsHtml5TreeBuilder::getListOfActiveFormattingElementsLength()
|
||||
{
|
||||
return listPtr + 1;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ class nsHtml5TreeBuilder : public nsAHtml5TreeBuilderState
|
||||
PRInt32 getForeignFlag();
|
||||
PRBool isNeedToDropLF();
|
||||
PRBool isQuirks();
|
||||
PRInt32 getListLength();
|
||||
PRInt32 getListOfActiveFormattingElementsLength();
|
||||
PRInt32 getStackLength();
|
||||
static void initializeStatics();
|
||||
static void releaseStatics();
|
||||
|
Loading…
Reference in New Issue
Block a user