Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: Source/core/dom/Node.h

Issue 428533003: Remove webkitConvertPointFromPageToNode() and webkitConvertPointFromNodeToPage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698