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 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2056 | 2056 |
2057 FloatPoint RenderObject::absoluteToLocal(const FloatPoint& containerPoint, MapCo
ordinatesFlags mode) const | 2057 FloatPoint RenderObject::absoluteToLocal(const FloatPoint& containerPoint, MapCo
ordinatesFlags mode) const |
2058 { | 2058 { |
2059 TransformState transformState(TransformState::UnapplyInverseTransformDirecti
on, containerPoint); | 2059 TransformState transformState(TransformState::UnapplyInverseTransformDirecti
on, containerPoint); |
2060 mapAbsoluteToLocalPoint(mode, transformState); | 2060 mapAbsoluteToLocalPoint(mode, transformState); |
2061 transformState.flatten(); | 2061 transformState.flatten(); |
2062 | 2062 |
2063 return transformState.lastPlanarPoint(); | 2063 return transformState.lastPlanarPoint(); |
2064 } | 2064 } |
2065 | 2065 |
2066 FloatQuad RenderObject::absoluteToLocalQuad(const FloatQuad& quad, MapCoordinate
sFlags mode) const | |
2067 { | |
2068 TransformState transformState(TransformState::UnapplyInverseTransformDirecti
on, quad.boundingBox().center(), quad); | |
2069 mapAbsoluteToLocalPoint(mode, transformState); | |
2070 transformState.flatten(); | |
2071 return transformState.lastPlanarQuad(); | |
2072 } | |
2073 | |
2074 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* repaintCont
ainer, TransformState& transformState, MapCoordinatesFlags mode, bool* wasFixed)
const | 2066 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* repaintCont
ainer, TransformState& transformState, MapCoordinatesFlags mode, bool* wasFixed)
const |
2075 { | 2067 { |
2076 if (repaintContainer == this) | 2068 if (repaintContainer == this) |
2077 return; | 2069 return; |
2078 | 2070 |
2079 RenderObject* o = parent(); | 2071 RenderObject* o = parent(); |
2080 if (!o) | 2072 if (!o) |
2081 return; | 2073 return; |
2082 | 2074 |
2083 // FIXME: this should call offsetFromContainer to share code, but I'm not su
re it's ever called. | 2075 // FIXME: this should call offsetFromContainer to share code, but I'm not su
re it's ever called. |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3186 { | 3178 { |
3187 if (object1) { | 3179 if (object1) { |
3188 const WebCore::RenderObject* root = object1; | 3180 const WebCore::RenderObject* root = object1; |
3189 while (root->parent()) | 3181 while (root->parent()) |
3190 root = root->parent(); | 3182 root = root->parent(); |
3191 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3183 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3192 } | 3184 } |
3193 } | 3185 } |
3194 | 3186 |
3195 #endif | 3187 #endif |
OLD | NEW |