| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 479 | 479 | 
| 480     // Used to determine whether range offsets use characters or node indices. | 480     // Used to determine whether range offsets use characters or node indices. | 
| 481     virtual bool offsetInCharacters() const; | 481     virtual bool offsetInCharacters() const; | 
| 482     // Number of DOM 16-bit units contained in node. Note that rendered text len
     gth can be different - e.g. because of | 482     // Number of DOM 16-bit units contained in node. Note that rendered text len
     gth can be different - e.g. because of | 
| 483     // css-transform:capitalize breaking up precomposed characters and ligatures
     . | 483     // css-transform:capitalize breaking up precomposed characters and ligatures
     . | 
| 484     virtual int maxCharacterOffset() const; | 484     virtual int maxCharacterOffset() const; | 
| 485 | 485 | 
| 486     // Whether or not a selection can be started in this object | 486     // Whether or not a selection can be started in this object | 
| 487     virtual bool canStartSelection() const; | 487     virtual bool canStartSelection() const; | 
| 488 | 488 | 
|  | 489     // Getting points into and out of screen space | 
|  | 490     FloatPoint convertToPage(const FloatPoint&) const; | 
|  | 491     FloatPoint convertFromPage(const FloatPoint&) const; | 
|  | 492 | 
| 489     // -------------------------------------------------------------------------
     ---- | 493     // -------------------------------------------------------------------------
     ---- | 
| 490     // Integration with rendering tree | 494     // Integration with rendering tree | 
| 491 | 495 | 
| 492     // As renderer() includes a branch you should avoid calling it repeatedly in
      hot code paths. | 496     // As renderer() includes a branch you should avoid calling it repeatedly in
      hot code paths. | 
| 493     // Note that if a Node has a renderer, it's parentNode is guaranteed to have
      one as well. | 497     // Note that if a Node has a renderer, it's parentNode is guaranteed to have
      one as well. | 
| 494     RenderObject* renderer() const { return hasRareData() ? m_data.m_rareData->r
     enderer() : m_data.m_renderer; }; | 498     RenderObject* renderer() const { return hasRareData() ? m_data.m_rareData->r
     enderer() : m_data.m_renderer; }; | 
| 495     void setRenderer(RenderObject* renderer) | 499     void setRenderer(RenderObject* renderer) | 
| 496     { | 500     { | 
| 497         if (hasRareData()) | 501         if (hasRareData()) | 
| 498             m_data.m_rareData->setRenderer(renderer); | 502             m_data.m_rareData->setRenderer(renderer); | 
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 884 } // namespace blink | 888 } // namespace blink | 
| 885 | 889 | 
| 886 #ifndef NDEBUG | 890 #ifndef NDEBUG | 
| 887 // Outside the WebCore namespace for ease of invocation from gdb. | 891 // Outside the WebCore namespace for ease of invocation from gdb. | 
| 888 void showNode(const blink::Node*); | 892 void showNode(const blink::Node*); | 
| 889 void showTree(const blink::Node*); | 893 void showTree(const blink::Node*); | 
| 890 void showNodePath(const blink::Node*); | 894 void showNodePath(const blink::Node*); | 
| 891 #endif | 895 #endif | 
| 892 | 896 | 
| 893 #endif | 897 #endif | 
| OLD | NEW | 
|---|