| 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) 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2070 { | 2070 { |
| 2071 // Track the point at the center of the quad's bounding box. As mapLocalToCo
ntainer() calls offsetFromContainer(), | 2071 // Track the point at the center of the quad's bounding box. As mapLocalToCo
ntainer() calls offsetFromContainer(), |
| 2072 // it will use that point as the reference point to decide which column's tr
ansform to apply in multiple-column blocks. | 2072 // it will use that point as the reference point to decide which column's tr
ansform to apply in multiple-column blocks. |
| 2073 TransformState transformState(TransformState::ApplyTransformDirection, local
Quad.boundingBox().center(), localQuad); | 2073 TransformState transformState(TransformState::ApplyTransformDirection, local
Quad.boundingBox().center(), localQuad); |
| 2074 mapLocalToContainer(repaintContainer, fixed, true, transformState, wasFixed)
; | 2074 mapLocalToContainer(repaintContainer, fixed, true, transformState, wasFixed)
; |
| 2075 transformState.flatten(); | 2075 transformState.flatten(); |
| 2076 | 2076 |
| 2077 return transformState.lastPlanarQuad(); | 2077 return transformState.lastPlanarQuad(); |
| 2078 } | 2078 } |
| 2079 | 2079 |
| 2080 FloatPoint RenderObject::localToContainerPoint(const FloatPoint& localPoint, Ren
derBoxModelObject* repaintContainer, bool fixed, bool* wasFixed) const |
| 2081 { |
| 2082 TransformState transformState(TransformState::ApplyTransformDirection, local
Point); |
| 2083 mapLocalToContainer(repaintContainer, fixed, true, transformState, wasFixed)
; |
| 2084 transformState.flatten(); |
| 2085 |
| 2086 return transformState.lastPlanarPoint(); |
| 2087 } |
| 2088 |
| 2080 LayoutSize RenderObject::offsetFromContainer(RenderObject* o, const LayoutPoint&
point) const | 2089 LayoutSize RenderObject::offsetFromContainer(RenderObject* o, const LayoutPoint&
point) const |
| 2081 { | 2090 { |
| 2082 ASSERT(o == container()); | 2091 ASSERT(o == container()); |
| 2083 | 2092 |
| 2084 LayoutSize offset; | 2093 LayoutSize offset; |
| 2085 | 2094 |
| 2086 o->adjustForColumns(offset, point); | 2095 o->adjustForColumns(offset, point); |
| 2087 | 2096 |
| 2088 if (o->hasOverflowClip()) | 2097 if (o->hasOverflowClip()) |
| 2089 offset -= toRenderBox(o)->layer()->scrolledContentOffset(); | 2098 offset -= toRenderBox(o)->layer()->scrolledContentOffset(); |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2844 { | 2853 { |
| 2845 if (object1) { | 2854 if (object1) { |
| 2846 const WebCore::RenderObject* root = object1; | 2855 const WebCore::RenderObject* root = object1; |
| 2847 while (root->parent()) | 2856 while (root->parent()) |
| 2848 root = root->parent(); | 2857 root = root->parent(); |
| 2849 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2858 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 2850 } | 2859 } |
| 2851 } | 2860 } |
| 2852 | 2861 |
| 2853 #endif | 2862 #endif |
| OLD | NEW |