| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2464 | 2464 |
| 2465 void Node::unregisterScopedHTMLStyleChild() | 2465 void Node::unregisterScopedHTMLStyleChild() |
| 2466 { | 2466 { |
| 2467 ASSERT(hasScopedHTMLStyleChild()); | 2467 ASSERT(hasScopedHTMLStyleChild()); |
| 2468 setHasScopedHTMLStyleChild(numberOfScopedHTMLStyleChildren()); | 2468 setHasScopedHTMLStyleChild(numberOfScopedHTMLStyleChildren()); |
| 2469 } | 2469 } |
| 2470 | 2470 |
| 2471 size_t Node::numberOfScopedHTMLStyleChildren() const | 2471 size_t Node::numberOfScopedHTMLStyleChildren() const |
| 2472 { | 2472 { |
| 2473 size_t count = 0; | 2473 size_t count = 0; |
| 2474 for (Node* child = firstChild(); child; child = child->nextSibling()) { | 2474 for (Element* child = ElementTraversal::firstWithin(*this); child; child = E
lementTraversal::nextSibling(*child)) { |
| 2475 if (child->hasTagName(HTMLNames::styleTag) && toHTMLStyleElement(child)-
>isRegisteredAsScoped()) | 2475 if (child->hasTagName(HTMLNames::styleTag) && toHTMLStyleElement(child)-
>isRegisteredAsScoped()) |
| 2476 count++; | 2476 ++count; |
| 2477 } | 2477 } |
| 2478 | 2478 |
| 2479 return count; | 2479 return count; |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 void Node::setFocus(bool flag) | 2482 void Node::setFocus(bool flag) |
| 2483 { | 2483 { |
| 2484 document().userActionElements().setFocused(this, flag); | 2484 document().userActionElements().setFocused(this, flag); |
| 2485 } | 2485 } |
| 2486 | 2486 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 node->showTreeForThis(); | 2554 node->showTreeForThis(); |
| 2555 } | 2555 } |
| 2556 | 2556 |
| 2557 void showNodePath(const WebCore::Node* node) | 2557 void showNodePath(const WebCore::Node* node) |
| 2558 { | 2558 { |
| 2559 if (node) | 2559 if (node) |
| 2560 node->showNodePathForThis(); | 2560 node->showNodePathForThis(); |
| 2561 } | 2561 } |
| 2562 | 2562 |
| 2563 #endif | 2563 #endif |
| OLD | NEW |