Bug 562698 - Part b: Pass Elements to nsNodeUtils::AttributeChanged; r=bzbarsky, a=dbaron
This commit is contained in:
@@ -61,11 +61,14 @@
|
||||
#include "nsIFormProcessor.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsEscape.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
|
||||
#ifdef MOZ_SVG
|
||||
#include "nsHtml5SVGLoadDispatcher.h"
|
||||
#endif
|
||||
|
||||
namespace dom = mozilla::dom;
|
||||
|
||||
static NS_DEFINE_CID(kFormProcessorCID, NS_FORMPROCESSOR_CID);
|
||||
|
||||
/**
|
||||
@@ -313,7 +316,7 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
|
||||
return AppendToDocument(node, aBuilder);
|
||||
}
|
||||
case eTreeOpAddAttributes: {
|
||||
nsIContent* node = *(mOne.node);
|
||||
dom::Element* node = (*(mOne.node))->AsElement();
|
||||
nsHtml5HtmlAttributes* attributes = mTwo.attributes;
|
||||
|
||||
nsHtml5OtherDocUpdate update(node->GetOwnerDoc(),
|
||||
|
||||
Reference in New Issue
Block a user