| 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-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 487 |
| 488 // Used to determine whether range offsets use characters or node indices. | 488 // Used to determine whether range offsets use characters or node indices. |
| 489 virtual bool offsetInCharacters() const; | 489 virtual bool offsetInCharacters() const; |
| 490 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of | 490 // Number of DOM 16-bit units contained in node. Note that rendered text len
gth can be different - e.g. because of |
| 491 // css-transform:capitalize breaking up precomposed characters and ligatures
. | 491 // css-transform:capitalize breaking up precomposed characters and ligatures
. |
| 492 virtual int maxCharacterOffset() const; | 492 virtual int maxCharacterOffset() const; |
| 493 | 493 |
| 494 // Whether or not a selection can be started in this object | 494 // Whether or not a selection can be started in this object |
| 495 virtual bool canStartSelection() const; | 495 virtual bool canStartSelection() const; |
| 496 | 496 |
| 497 // Getting points into and out of screen space | |
| 498 FloatPoint convertToPage(const FloatPoint&) const; | |
| 499 FloatPoint convertFromPage(const FloatPoint&) const; | |
| 500 | |
| 501 // -------------------------------------------------------------------------
---- | 497 // -------------------------------------------------------------------------
---- |
| 502 // Integration with rendering tree | 498 // Integration with rendering tree |
| 503 | 499 |
| 504 // As renderer() includes a branch you should avoid calling it repeatedly in
hot code paths. | 500 // As renderer() includes a branch you should avoid calling it repeatedly in
hot code paths. |
| 505 // Note that if a Node has a renderer, it's parentNode is guaranteed to have
one as well. | 501 // Note that if a Node has a renderer, it's parentNode is guaranteed to have
one as well. |
| 506 RenderObject* renderer() const { return hasRareData() ? m_data.m_rareData->r
enderer() : m_data.m_renderer; }; | 502 RenderObject* renderer() const { return hasRareData() ? m_data.m_rareData->r
enderer() : m_data.m_renderer; }; |
| 507 void setRenderer(RenderObject* renderer) | 503 void setRenderer(RenderObject* renderer) |
| 508 { | 504 { |
| 509 if (hasRareData()) | 505 if (hasRareData()) |
| 510 m_data.m_rareData->setRenderer(renderer); | 506 m_data.m_rareData->setRenderer(renderer); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 } // namespace blink | 893 } // namespace blink |
| 898 | 894 |
| 899 #ifndef NDEBUG | 895 #ifndef NDEBUG |
| 900 // Outside the WebCore namespace for ease of invocation from gdb. | 896 // Outside the WebCore namespace for ease of invocation from gdb. |
| 901 void showNode(const blink::Node*); | 897 void showNode(const blink::Node*); |
| 902 void showTree(const blink::Node*); | 898 void showTree(const blink::Node*); |
| 903 void showNodePath(const blink::Node*); | 899 void showNodePath(const blink::Node*); |
| 904 #endif | 900 #endif |
| 905 | 901 |
| 906 #endif | 902 #endif |
| OLD | NEW |