| 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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2066 IntPoint centerPoint = roundedIntPoint(transformState.mappedPoint()); | 2066 IntPoint centerPoint = roundedIntPoint(transformState.mappedPoint()); |
| 2067 transformState.move(toLayoutBox(container)->flipForWritingMode( | 2067 transformState.move(toLayoutBox(container)->flipForWritingMode( |
| 2068 LayoutPoint(centerPoint)) - | 2068 LayoutPoint(centerPoint)) - |
| 2069 centerPoint); | 2069 centerPoint); |
| 2070 } | 2070 } |
| 2071 mode &= ~ApplyContainerFlip; | 2071 mode &= ~ApplyContainerFlip; |
| 2072 } | 2072 } |
| 2073 } | 2073 } |
| 2074 | 2074 |
| 2075 LayoutSize containerOffset = offsetFromContainer(container); | 2075 LayoutSize containerOffset = offsetFromContainer(container); |
| 2076 |
| 2077 // TODO(smcgruer): Don't include offsetForInFlowPosition in |
| 2078 // offsetFromContainer when IgnoreStickyOffset is set. |
| 2079 if (isBoxModelObject() && isStickyPositioned() && |
| 2080 (mode & IgnoreStickyOffset)) { |
| 2081 containerOffset -= toLayoutBoxModelObject(this)->offsetForInFlowPosition(); |
| 2082 } |
| 2083 |
| 2076 if (isLayoutFlowThread()) { | 2084 if (isLayoutFlowThread()) { |
| 2077 // So far the point has been in flow thread coordinates (i.e. as if | 2085 // So far the point has been in flow thread coordinates (i.e. as if |
| 2078 // everything in the fragmentation context lived in one tall single column). | 2086 // everything in the fragmentation context lived in one tall single column). |
| 2079 // Convert it to a visual point now, since we're about to escape the flow | 2087 // Convert it to a visual point now, since we're about to escape the flow |
| 2080 // thread. | 2088 // thread. |
| 2081 containerOffset += columnOffset(LayoutPoint(transformState.mappedPoint())); | 2089 containerOffset += columnOffset(LayoutPoint(transformState.mappedPoint())); |
| 2082 } | 2090 } |
| 2083 | 2091 |
| 2084 // Text objects just copy their parent's computed style, so we need to ignore | 2092 // Text objects just copy their parent's computed style, so we need to ignore |
| 2085 // them. | 2093 // them. |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3492 const blink::LayoutObject* root = object1; | 3500 const blink::LayoutObject* root = object1; |
| 3493 while (root->parent()) | 3501 while (root->parent()) |
| 3494 root = root->parent(); | 3502 root = root->parent(); |
| 3495 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3503 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3496 } else { | 3504 } else { |
| 3497 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3505 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3498 } | 3506 } |
| 3499 } | 3507 } |
| 3500 | 3508 |
| 3501 #endif | 3509 #endif |
| OLD | NEW |