Remove parser generation of the _moz-userdefined attribute since comopser can figure out the information it provides on its own. bug 325405, r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@188915 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9b501fe877
commit
1559ac31f4
@ -1000,22 +1000,6 @@ CNavDTD::WillHandleStartTag(CToken* aToken, eHTMLTags aTag,
|
||||
{
|
||||
nsresult result = NS_OK;
|
||||
|
||||
// This little gem creates a special attribute for the editor team to use.
|
||||
// The attribute only get's applied to unknown tags, and is used by ender
|
||||
// (during editing) to display a special icon for unknown tags.
|
||||
if (eHTMLTag_userdefined == aTag) {
|
||||
CToken* tempToken = mTokenAllocator->CreateTokenOfType(eToken_attribute,
|
||||
aTag);
|
||||
CAttributeToken* theToken = NS_STATIC_CAST(CAttributeToken*, tempToken);
|
||||
if (theToken) {
|
||||
theToken->SetKey(NS_LITERAL_STRING("_moz-userdefined"));
|
||||
aNode.AddAttribute(theToken);
|
||||
|
||||
// Make sure to remember that we added this attribute.
|
||||
aToken->SetAttributeCount(aNode.GetAttributeCount());
|
||||
}
|
||||
}
|
||||
|
||||
PRInt32 stackDepth = mBodyContext->GetCount();
|
||||
if (stackDepth >= FONTSTYLE_IGNORE_DEPTH &&
|
||||
gHTMLElements[aTag].IsMemberOf(kFontStyle)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user