зеркало из https://github.com/mozilla/gecko-dev.git
Fixing a bug with allowevents in the tree view.
This commit is contained in:
Родитель
b706d5e26b
Коммит
9433d1b9be
|
@ -2724,7 +2724,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
|
|||
// We make a tree cell frame and process the children.
|
||||
// Find out what the attribute value for event allowance is.
|
||||
nsString attrValue;
|
||||
nsresult result = aContent->GetAttribute(nsXULAtoms::nameSpaceID, nsXULAtoms::treeallowevents, attrValue);
|
||||
nsresult result = aContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::treeallowevents, attrValue);
|
||||
attrValue.ToLowerCase();
|
||||
PRBool allowEvents = (result == NS_CONTENT_ATTR_NO_VALUE ||
|
||||
(result == NS_CONTENT_ATTR_HAS_VALUE && attrValue=="true"));
|
||||
|
|
|
@ -2724,7 +2724,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext,
|
|||
// We make a tree cell frame and process the children.
|
||||
// Find out what the attribute value for event allowance is.
|
||||
nsString attrValue;
|
||||
nsresult result = aContent->GetAttribute(nsXULAtoms::nameSpaceID, nsXULAtoms::treeallowevents, attrValue);
|
||||
nsresult result = aContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::treeallowevents, attrValue);
|
||||
attrValue.ToLowerCase();
|
||||
PRBool allowEvents = (result == NS_CONTENT_ATTR_NO_VALUE ||
|
||||
(result == NS_CONTENT_ATTR_HAS_VALUE && attrValue=="true"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче