Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen
This commit is contained in:
@@ -3119,6 +3119,13 @@ nsHtml5TreeBuilder::isSecondOnStackBody()
|
||||
void
|
||||
nsHtml5TreeBuilder::documentModeInternal(nsHtml5DocumentMode m, nsString* publicIdentifier, nsString* systemIdentifier, bool html4SpecificAdditionalErrorChecks)
|
||||
{
|
||||
if (isSrcdocDocument) {
|
||||
quirks = false;
|
||||
if (this) {
|
||||
this->documentMode(STANDARDS_MODE);
|
||||
}
|
||||
return;
|
||||
}
|
||||
quirks = (m == QUIRKS_MODE);
|
||||
if (this) {
|
||||
this->documentMode(m);
|
||||
@@ -4064,6 +4071,12 @@ nsHtml5TreeBuilder::setScriptingEnabled(bool scriptingEnabled)
|
||||
this->scriptingEnabled = scriptingEnabled;
|
||||
}
|
||||
|
||||
void
|
||||
nsHtml5TreeBuilder::setIsSrcdocDocument(bool isSrcdocDocument)
|
||||
{
|
||||
this->isSrcdocDocument = isSrcdocDocument;
|
||||
}
|
||||
|
||||
void
|
||||
nsHtml5TreeBuilder::flushCharacters()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user