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 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2442 | 2442 |
2443 if (backingLayer) | 2443 if (backingLayer) |
2444 *backingLayer = paintInvalidationContainer.layer(); | 2444 *backingLayer = paintInvalidationContainer.layer(); |
2445 FloatPoint containerPoint = localToAncestorPoint(FloatPoint(localPoint), &pa
intInvalidationContainer, TraverseDocumentBoundaries); | 2445 FloatPoint containerPoint = localToAncestorPoint(FloatPoint(localPoint), &pa
intInvalidationContainer, TraverseDocumentBoundaries); |
2446 | 2446 |
2447 // A layoutObject can have no invalidation backing if it is from a detached
frame, | 2447 // A layoutObject can have no invalidation backing if it is from a detached
frame, |
2448 // or when forced compositing is disabled. | 2448 // or when forced compositing is disabled. |
2449 if (paintInvalidationContainer.layer()->compositingState() == NotComposited) | 2449 if (paintInvalidationContainer.layer()->compositingState() == NotComposited) |
2450 return containerPoint; | 2450 return containerPoint; |
2451 | 2451 |
2452 PaintLayer::mapPointToPaintBackingCoordinates(&paintInvalidationContainer, c
ontainerPoint); | 2452 PaintLayer::mapPointInPaintInvalidationContainerToBacking(&paintInvalidation
Container, containerPoint); |
2453 return containerPoint; | 2453 return containerPoint; |
2454 } | 2454 } |
2455 | 2455 |
2456 LayoutSize LayoutObject::offsetFromContainer(const LayoutObject* o) const | 2456 LayoutSize LayoutObject::offsetFromContainer(const LayoutObject* o) const |
2457 { | 2457 { |
2458 ASSERT(o == container()); | 2458 ASSERT(o == container()); |
2459 return o->hasOverflowClip() ? LayoutSize(-toLayoutBox(o)->scrolledContentOff
set()) : LayoutSize(); | 2459 return o->hasOverflowClip() ? LayoutSize(-toLayoutBox(o)->scrolledContentOff
set()) : LayoutSize(); |
2460 } | 2460 } |
2461 | 2461 |
2462 LayoutSize LayoutObject::offsetFromAncestorContainer(const LayoutObject* ancesto
rContainer) const | 2462 LayoutSize LayoutObject::offsetFromAncestorContainer(const LayoutObject* ancesto
rContainer) const |
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3727 const blink::LayoutObject* root = object1; | 3727 const blink::LayoutObject* root = object1; |
3728 while (root->parent()) | 3728 while (root->parent()) |
3729 root = root->parent(); | 3729 root = root->parent(); |
3730 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3730 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3731 } else { | 3731 } else { |
3732 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3732 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
3733 } | 3733 } |
3734 } | 3734 } |
3735 | 3735 |
3736 #endif | 3736 #endif |
OLD | NEW |