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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 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 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2625 { | 2625 { |
2626 // FIXME: We may want to not antialias when scaled by an integral value, | 2626 // FIXME: We may want to not antialias when scaled by an integral value, |
2627 // and we may want to antialias when translated by a non-integral value. | 2627 // and we may want to antialias when translated by a non-integral value. |
2628 // FIXME: See crbug.com/382491. getCTM does not include scale factors applie
d at raster time, such | 2628 // FIXME: See crbug.com/382491. getCTM does not include scale factors applie
d at raster time, such |
2629 // as device zoom. | 2629 // as device zoom. |
2630 return !context->getCTM().isIdentityOrTranslationOrFlipped(); | 2630 return !context->getCTM().isIdentityOrTranslationOrFlipped(); |
2631 } | 2631 } |
2632 | 2632 |
2633 void RenderBoxModelObject::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, Tra
nsformState& transformState) const | 2633 void RenderBoxModelObject::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, Tra
nsformState& transformState) const |
2634 { | 2634 { |
| 2635 // We don't expect to be called during layout. |
| 2636 ASSERT(!view() || !view()->layoutStateCachedOffsetsEnabled()); |
| 2637 |
2635 RenderObject* o = container(); | 2638 RenderObject* o = container(); |
2636 if (!o) | 2639 if (!o) |
2637 return; | 2640 return; |
2638 | 2641 |
2639 if (o->isRenderFlowThread()) | 2642 if (o->isRenderFlowThread()) |
2640 transformState.move(o->columnOffset(LayoutPoint(transformState.mappedPoi
nt()))); | 2643 transformState.move(o->columnOffset(LayoutPoint(transformState.mappedPoi
nt()))); |
2641 | 2644 |
2642 o->mapAbsoluteToLocalPoint(mode, transformState); | 2645 o->mapAbsoluteToLocalPoint(mode, transformState); |
2643 | 2646 |
2644 LayoutSize containerOffset = offsetFromContainer(o, LayoutPoint()); | 2647 LayoutSize containerOffset = offsetFromContainer(o, LayoutPoint()); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2727 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); | 2730 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); |
2728 for (RenderObject* child = startChild; child && child != endChild; ) { | 2731 for (RenderObject* child = startChild; child && child != endChild; ) { |
2729 // Save our next sibling as moveChildTo will clear it. | 2732 // Save our next sibling as moveChildTo will clear it. |
2730 RenderObject* nextSibling = child->nextSibling(); | 2733 RenderObject* nextSibling = child->nextSibling(); |
2731 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); | 2734 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); |
2732 child = nextSibling; | 2735 child = nextSibling; |
2733 } | 2736 } |
2734 } | 2737 } |
2735 | 2738 |
2736 } // namespace WebCore | 2739 } // namespace WebCore |
OLD | NEW |