| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 RenderObject* renderer = m_data.m_rareData->renderer(); | 329 RenderObject* renderer = m_data.m_rareData->renderer(); |
| 330 if (isElementNode()) | 330 if (isElementNode()) |
| 331 delete static_cast<ElementRareData*>(m_data.m_rareData); | 331 delete static_cast<ElementRareData*>(m_data.m_rareData); |
| 332 else | 332 else |
| 333 delete static_cast<NodeRareData*>(m_data.m_rareData); | 333 delete static_cast<NodeRareData*>(m_data.m_rareData); |
| 334 m_data.m_renderer = renderer; | 334 m_data.m_renderer = renderer; |
| 335 clearFlag(HasRareDataFlag); | 335 clearFlag(HasRareDataFlag); |
| 336 } | 336 } |
| 337 | 337 |
| 338 bool Node::hasRestyleFlagInternal(DynamicRestyleFlags mask) const |
| 339 { |
| 340 return rareData()->hasRestyleFlag(mask); |
| 341 } |
| 342 |
| 343 bool Node::hasRestyleFlagsInternal() const |
| 344 { |
| 345 return rareData()->hasRestyleFlags(); |
| 346 } |
| 347 |
| 348 void Node::setRestyleFlag(DynamicRestyleFlags mask) |
| 349 { |
| 350 ASSERT(isElementNode() || isShadowRoot()); |
| 351 ensureRareData().setRestyleFlag(mask); |
| 352 } |
| 353 |
| 338 Node* Node::toNode() | 354 Node* Node::toNode() |
| 339 { | 355 { |
| 340 return this; | 356 return this; |
| 341 } | 357 } |
| 342 | 358 |
| 343 short Node::tabIndex() const | 359 short Node::tabIndex() const |
| 344 { | 360 { |
| 345 return 0; | 361 return 0; |
| 346 } | 362 } |
| 347 | 363 |
| (...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2535 node->showTreeForThis(); | 2551 node->showTreeForThis(); |
| 2536 } | 2552 } |
| 2537 | 2553 |
| 2538 void showNodePath(const WebCore::Node* node) | 2554 void showNodePath(const WebCore::Node* node) |
| 2539 { | 2555 { |
| 2540 if (node) | 2556 if (node) |
| 2541 node->showNodePathForThis(); | 2557 node->showNodePathForThis(); |
| 2542 } | 2558 } |
| 2543 | 2559 |
| 2544 #endif | 2560 #endif |
| OLD | NEW |