Closed
Bug 98704
Opened 23 years ago
Closed 23 years ago
Node::getXPathParent is needed all over the place, ContextState::getParentNode should die
Categories
(Core :: XSLT, defect, P1)
Core
XSLT
Tracking
()
VERIFIED
FIXED
mozilla0.9.5
People
(Reporter: axel, Assigned: axel)
References
Details
Attachments
(2 files)
(deleted),
patch
|
peterv
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sicking
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
This bug is a split off from bug 76070.
The upcoming patch implements Node::getXPathParent, does the right thing to
source/xml/util/DOMHelper, and fixes the whitespace mess in
NodeDefinition::getBaseURI (just as I go).
Axel
Assignee | ||
Updated•23 years ago
|
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Comment 2•23 years ago
|
||
Comment on attachment 48577 [details] [diff] [review]
getXPathParent.patch
r=peterv, now on to killing ProcessorState::getParentNode
Attachment #48577 -
Flags: review+
Comment 3•23 years ago
|
||
Attachment #48577 -
Flags: superreview+
Assignee | ||
Comment 4•23 years ago
|
||
patch 48577 is in, leaving this bug open and morping it to kill
ContextState::getParentNode (which is ProcessorState::getParentNode).
Axel
Summary: Node::getXPathParent is needed all over the place → Node::getXPathParent is needed all over the place, ContextState::getParentNode should die
Assignee | ||
Comment 5•23 years ago
|
||
Assignee | ||
Comment 6•23 years ago
|
||
added
MBool LocationStep::matches(Node* node, Node* context, ContextState* cs) {
- if ( !nodeExpr ) return MB_FALSE;
+ if (!nodeExpr || !node)
+ return MB_FALSE;
- if ( !nodeExpr->matches(node, context, cs) ) return MB_FALSE;
+ if (!nodeExpr->matches(node, context, cs))
+ return MB_FALSE;
to make ::matches 0 crash safe. Thanx to sicking for catching this.
(the second one is just whity fun)
Axel
Comment on attachment 49080 [details] [diff] [review]
second patch, kill ProcessorState::getParentNode alltogether
r=sicking
Attachment #49080 -
Flags: review+
Comment 8•23 years ago
|
||
Comment on attachment 49080 [details] [diff] [review]
second patch, kill ProcessorState::getParentNode alltogether
r=peterv
Comment 9•23 years ago
|
||
Comment on attachment 49080 [details] [diff] [review]
second patch, kill ProcessorState::getParentNode alltogether
sr=jst
Attachment #49080 -
Flags: superreview+
Assignee | ||
Comment 10•23 years ago
|
||
I forgot to note in the first landing that this is code by sicking, sorry for
that.
second stage landed, marking fixed.
Axel
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
verified
You need to log in
before you can comment on or make changes to this bug.
Description
•