зеркало из https://github.com/mozilla/gecko-dev.git
Adapt for hash table changes. Not part of default build. a=leaf.
This commit is contained in:
Родитель
74ba801f7a
Коммит
6e9afb08e6
|
@ -19,13 +19,13 @@
|
|||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: DOMHelper.cpp,v 1.3 2000/06/11 11:42:20 Peter.VanderBeken%pandora.be Exp $
|
||||
* $Id: DOMHelper.cpp,v 1.4 2000/08/26 04:20:14 Peter.VanderBeken%pandora.be Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* A class used to overcome DOM 1.0 deficiencies
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.3 $ $Date: 2000/06/11 11:42:20 $
|
||||
* @version $Revision: 1.4 $ $Date: 2000/08/26 04:20:14 $
|
||||
**/
|
||||
|
||||
#include "DOMHelper.h"
|
||||
|
@ -115,7 +115,11 @@ Node* DOMHelper::getParentNode(Node* node) {
|
|||
if (node->getNodeType() != Node::ATTRIBUTE_NODE)
|
||||
return node->getParentNode();
|
||||
|
||||
#ifdef MOZ_XSL
|
||||
void* key = node->getKey();
|
||||
#else
|
||||
Int32 key = (Int32)node;
|
||||
#endif
|
||||
MITREObjectWrapper* wrapper = 0;
|
||||
|
||||
wrapper = (MITREObjectWrapper*) parents.retrieve(key);
|
||||
|
@ -139,7 +143,11 @@ Node* DOMHelper::getParentNode(Node* node) {
|
|||
**/
|
||||
void DOMHelper::addParentReference(Node* child, Node* parent) {
|
||||
|
||||
#ifdef MOZ_XSL
|
||||
void* key = child->getKey();
|
||||
#else
|
||||
Int32 key = (Int32)child;
|
||||
#endif
|
||||
MITREObjectWrapper* wrapper = (MITREObjectWrapper*) parents.retrieve(key);
|
||||
if (!wrapper) {
|
||||
wrapper = new MITREObjectWrapper();
|
||||
|
@ -260,7 +268,11 @@ OrderInfo* DOMHelper::getDocumentOrder(Node* node) {
|
|||
|
||||
if (!node) return 0;
|
||||
|
||||
#ifdef MOZ_XSL
|
||||
void* key = node->getKey();
|
||||
#else
|
||||
Int32 key = (Int32)node;
|
||||
#endif
|
||||
OrderInfo* orderInfo = (OrderInfo*)orders.retrieve(key);
|
||||
|
||||
if (!orderInfo) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче