| 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 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2738 // FIXME: We may want to not antialias when scaled by an integral value, | 2738 // FIXME: We may want to not antialias when scaled by an integral value, |
| 2739 // and we may want to antialias when translated by a non-integral value. | 2739 // and we may want to antialias when translated by a non-integral value. |
| 2740 // FIXME: See crbug.com/382491. getCTM does not include scale factors applie
d at raster time, such | 2740 // FIXME: See crbug.com/382491. getCTM does not include scale factors applie
d at raster time, such |
| 2741 // as device zoom. | 2741 // as device zoom. |
| 2742 return !context->getCTM().isIdentityOrTranslationOrFlipped(); | 2742 return !context->getCTM().isIdentityOrTranslationOrFlipped(); |
| 2743 } | 2743 } |
| 2744 | 2744 |
| 2745 void RenderBoxModelObject::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, Tra
nsformState& transformState) const | 2745 void RenderBoxModelObject::mapAbsoluteToLocalPoint(MapCoordinatesFlags mode, Tra
nsformState& transformState) const |
| 2746 { | 2746 { |
| 2747 // We don't expect to be called during layout. | 2747 // We don't expect to be called during layout. |
| 2748 ASSERT(!view() || !view()->layoutStateEnabled()); | 2748 ASSERT(!view() || !view()->layoutStateCachedOffsetsEnabled()); |
| 2749 | 2749 |
| 2750 RenderObject* o = container(); | 2750 RenderObject* o = container(); |
| 2751 if (!o) | 2751 if (!o) |
| 2752 return; | 2752 return; |
| 2753 | 2753 |
| 2754 if (o->isRenderFlowThread()) | 2754 if (o->isRenderFlowThread()) |
| 2755 transformState.move(o->columnOffset(LayoutPoint(transformState.mappedPoi
nt()))); | 2755 transformState.move(o->columnOffset(LayoutPoint(transformState.mappedPoi
nt()))); |
| 2756 | 2756 |
| 2757 o->mapAbsoluteToLocalPoint(mode, transformState); | 2757 o->mapAbsoluteToLocalPoint(mode, transformState); |
| 2758 | 2758 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2842 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); | 2842 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); |
| 2843 for (RenderObject* child = startChild; child && child != endChild; ) { | 2843 for (RenderObject* child = startChild; child && child != endChild; ) { |
| 2844 // Save our next sibling as moveChildTo will clear it. | 2844 // Save our next sibling as moveChildTo will clear it. |
| 2845 RenderObject* nextSibling = child->nextSibling(); | 2845 RenderObject* nextSibling = child->nextSibling(); |
| 2846 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); | 2846 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); |
| 2847 child = nextSibling; | 2847 child = nextSibling; |
| 2848 } | 2848 } |
| 2849 } | 2849 } |
| 2850 | 2850 |
| 2851 } // namespace WebCore | 2851 } // namespace WebCore |
| OLD | NEW |