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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 delete static_cast<NodeRareData*>(m_data.m_rareData); | 479 delete static_cast<NodeRareData*>(m_data.m_rareData); |
480 m_data.m_renderer = renderer; | 480 m_data.m_renderer = renderer; |
481 clearFlag(HasRareDataFlag); | 481 clearFlag(HasRareDataFlag); |
482 } | 482 } |
483 | 483 |
484 Node* Node::toNode() | 484 Node* Node::toNode() |
485 { | 485 { |
486 return this; | 486 return this; |
487 } | 487 } |
488 | 488 |
489 HTMLInputElement* Node::toInputElement() | 489 Result<HTMLInputElement> Node::toInputElement() |
490 { | 490 { |
491 // If one of the below ASSERTs trigger, you are calling this function | 491 // If one of the below ASSERTs trigger, you are calling this function |
492 // directly or indirectly from a constructor or destructor of this object. | 492 // directly or indirectly from a constructor or destructor of this object. |
493 // Don't do this! | 493 // Don't do this! |
494 ASSERT(!(isHTMLElement() && hasTagName(inputTag))); | 494 ASSERT(!(isHTMLElement() && hasTagName(inputTag))); |
495 return 0; | 495 return nullptr; |
496 } | 496 } |
497 | 497 |
498 short Node::tabIndex() const | 498 short Node::tabIndex() const |
499 { | 499 { |
500 return 0; | 500 return 0; |
501 } | 501 } |
502 | 502 |
503 String Node::nodeValue() const | 503 String Node::nodeValue() const |
504 { | 504 { |
505 return String(); | 505 return String(); |
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2740 node->showTreeForThis(); | 2740 node->showTreeForThis(); |
2741 } | 2741 } |
2742 | 2742 |
2743 void showNodePath(const WebCore::Node* node) | 2743 void showNodePath(const WebCore::Node* node) |
2744 { | 2744 { |
2745 if (node) | 2745 if (node) |
2746 node->showNodePathForThis(); | 2746 node->showNodePathForThis(); |
2747 } | 2747 } |
2748 | 2748 |
2749 #endif | 2749 #endif |
OLD | NEW |