OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 // Convert the given local point to absolute coordinates | 636 // Convert the given local point to absolute coordinates |
637 // FIXME: Temporary. If useTransforms is true, take transforms into account.
Eventually localToAbsolute() will always be transform-aware. | 637 // FIXME: Temporary. If useTransforms is true, take transforms into account.
Eventually localToAbsolute() will always be transform-aware. |
638 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), bool
fixed = false, bool useTransforms = false) const; | 638 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), bool
fixed = false, bool useTransforms = false) const; |
639 FloatPoint absoluteToLocal(const FloatPoint&, bool fixed = false, bool useTr
ansforms = false) const; | 639 FloatPoint absoluteToLocal(const FloatPoint&, bool fixed = false, bool useTr
ansforms = false) const; |
640 | 640 |
641 // Convert a local quad to absolute coordinates, taking transforms into acco
unt. | 641 // Convert a local quad to absolute coordinates, taking transforms into acco
unt. |
642 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, bool fixed = false, boo
l* wasFixed = 0) const | 642 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, bool fixed = false, boo
l* wasFixed = 0) const |
643 { | 643 { |
644 return localToContainerQuad(quad, 0, fixed, wasFixed); | 644 return localToContainerQuad(quad, 0, fixed, wasFixed); |
645 } | 645 } |
| 646 |
646 // Convert a local quad into the coordinate system of container, taking tran
sforms into account. | 647 // Convert a local quad into the coordinate system of container, taking tran
sforms into account. |
647 FloatQuad localToContainerQuad(const FloatQuad&, RenderBoxModelObject* repai
ntContainer, bool fixed = false, bool* wasFixed = 0) const; | 648 FloatQuad localToContainerQuad(const FloatQuad&, RenderBoxModelObject* repai
ntContainer, bool fixed = false, bool* wasFixed = 0) const; |
| 649 FloatPoint localToContainerPoint(const FloatPoint&, RenderBoxModelObject* re
paintContainer, bool fixed = false, bool* wasFixed = 0) const; |
648 | 650 |
649 // Return the offset from the container() renderer (excluding transforms). I
n multi-column layout, | 651 // Return the offset from the container() renderer (excluding transforms). I
n multi-column layout, |
650 // different offsets apply at different points, so return the offset that ap
plies to the given point. | 652 // different offsets apply at different points, so return the offset that ap
plies to the given point. |
651 virtual LayoutSize offsetFromContainer(RenderObject*, const LayoutPoint&) co
nst; | 653 virtual LayoutSize offsetFromContainer(RenderObject*, const LayoutPoint&) co
nst; |
652 // Return the offset from an object up the container() chain. Asserts that n
one of the intermediate objects have transforms. | 654 // Return the offset from an object up the container() chain. Asserts that n
one of the intermediate objects have transforms. |
653 LayoutSize offsetFromAncestorContainer(RenderObject*) const; | 655 LayoutSize offsetFromAncestorContainer(RenderObject*) const; |
654 | 656 |
655 virtual void absoluteRects(Vector<LayoutRect>&, const LayoutPoint&) const {
} | 657 virtual void absoluteRects(Vector<LayoutRect>&, const LayoutPoint&) const {
} |
656 | 658 |
657 // FIXME: useTransforms should go away eventually | 659 // FIXME: useTransforms should go away eventually |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 // Outside the WebCore namespace for ease of invocation from gdb. | 1153 // Outside the WebCore namespace for ease of invocation from gdb. |
1152 void showTree(const WebCore::RenderObject*); | 1154 void showTree(const WebCore::RenderObject*); |
1153 void showLineTree(const WebCore::RenderObject*); | 1155 void showLineTree(const WebCore::RenderObject*); |
1154 void showRenderTree(const WebCore::RenderObject* object1); | 1156 void showRenderTree(const WebCore::RenderObject* object1); |
1155 // We don't make object2 an optional parameter so that showRenderTree | 1157 // We don't make object2 an optional parameter so that showRenderTree |
1156 // can be called from gdb easily. | 1158 // can be called from gdb easily. |
1157 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1159 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1158 #endif | 1160 #endif |
1159 | 1161 |
1160 #endif // RenderObject_h | 1162 #endif // RenderObject_h |
OLD | NEW |