| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2  * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 
| 3  * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 3  * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 
| 4  * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4  * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 
| 5  * | 5  * | 
| 6  * Redistribution and use in source and binary forms, with or without | 6  * Redistribution and use in source and binary forms, with or without | 
| 7  * modification, are permitted provided that the following conditions | 7  * modification, are permitted provided that the following conditions | 
| 8  * are met: | 8  * are met: | 
| 9  * | 9  * | 
| 10  * 1. Redistributions of source code must retain the above copyright | 10  * 1. Redistributions of source code must retain the above copyright | 
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 324 | 324 | 
| 325         for (Node* n = context->previousSibling(); n; n = n->previousSibling()) 
     { | 325         for (Node* n = context->previousSibling(); n; n = n->previousSibling()) 
     { | 
| 326             if (nodeMatches(evaluationContext, n, PrecedingSiblingAxis, nodeTest
     ())) | 326             if (nodeMatches(evaluationContext, n, PrecedingSiblingAxis, nodeTest
     ())) | 
| 327                 nodes.append(n); | 327                 nodes.append(n); | 
| 328         } | 328         } | 
| 329         nodes.markSorted(false); | 329         nodes.markSorted(false); | 
| 330         return; | 330         return; | 
| 331 | 331 | 
| 332     case FollowingAxis: | 332     case FollowingAxis: | 
| 333         if (context->isAttributeNode()) { | 333         if (context->isAttributeNode()) { | 
| 334             for (Node& p : NodeTraversal::fromNext(*toAttr(context)->ownerElemen
     t())) { | 334             for (Node& p : NodeTraversal::startsAfter(*toAttr(context)->ownerEle
     ment())) { | 
| 335                 if (nodeMatches(evaluationContext, &p, FollowingAxis, nodeTest()
     )) | 335                 if (nodeMatches(evaluationContext, &p, FollowingAxis, nodeTest()
     )) | 
| 336                     nodes.append(&p); | 336                     nodes.append(&p); | 
| 337             } | 337             } | 
| 338         } else { | 338         } else { | 
| 339             for (Node* p = context; !isRootDomNode(p); p = p->parentNode()) { | 339             for (Node* p = context; !isRootDomNode(p); p = p->parentNode()) { | 
| 340                 for (Node* n = p->nextSibling(); n; n = n->nextSibling()) { | 340                 for (Node* n = p->nextSibling(); n; n = n->nextSibling()) { | 
| 341                     if (nodeMatches(evaluationContext, n, FollowingAxis, nodeTes
     t())) | 341                     if (nodeMatches(evaluationContext, n, FollowingAxis, nodeTes
     t())) | 
| 342                         nodes.append(n); | 342                         nodes.append(n); | 
| 343                     for (Node& c : NodeTraversal::descendantsOf(*n)) { | 343                     for (Node& c : NodeTraversal::descendantsOf(*n)) { | 
| 344                         if (nodeMatches(evaluationContext, &c, FollowingAxis, no
     deTest())) | 344                         if (nodeMatches(evaluationContext, &c, FollowingAxis, no
     deTest())) | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 431         nodes.markSorted(false); | 431         nodes.markSorted(false); | 
| 432         return; | 432         return; | 
| 433     } | 433     } | 
| 434     } | 434     } | 
| 435     ASSERT_NOT_REACHED(); | 435     ASSERT_NOT_REACHED(); | 
| 436 } | 436 } | 
| 437 | 437 | 
| 438 } | 438 } | 
| 439 | 439 | 
| 440 } | 440 } | 
| OLD | NEW | 
|---|