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