OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 LayoutRect rect = layoutObject()->visualOverflowRect(); | 2413 LayoutRect rect = layoutObject()->visualOverflowRect(); |
2414 | 2414 |
2415 if (isRootLayer()) { | 2415 if (isRootLayer()) { |
2416 rect.unite( | 2416 rect.unite( |
2417 LayoutRect(rect.location(), layoutObject()->view()->viewRect().size())); | 2417 LayoutRect(rect.location(), layoutObject()->view()->viewRect().size())); |
2418 } | 2418 } |
2419 | 2419 |
2420 return rect; | 2420 return rect; |
2421 } | 2421 } |
2422 | 2422 |
2423 static inline LayoutRect flippedLogicalBoundingBox( | 2423 static inline LayoutRect flippedLogicalBoundingBox(LayoutRect boundingBox, |
2424 LayoutRect boundingBox, | 2424 LayoutObject* layoutObject) { |
2425 LayoutObject* layoutObjects) { | |
2426 LayoutRect result = boundingBox; | 2425 LayoutRect result = boundingBox; |
2427 if (layoutObjects->isBox()) | 2426 if (layoutObject->isBox()) |
2428 toLayoutBox(layoutObjects)->flipForWritingMode(result); | 2427 toLayoutBox(layoutObject)->flipForWritingMode(result); |
2429 else | 2428 else |
2430 layoutObjects->containingBlock()->flipForWritingMode(result); | 2429 layoutObject->containingBlock()->flipForWritingMode(result); |
2431 return result; | 2430 return result; |
2432 } | 2431 } |
2433 | 2432 |
2434 LayoutRect PaintLayer::physicalBoundingBox( | 2433 LayoutRect PaintLayer::physicalBoundingBox( |
2435 const PaintLayer* ancestorLayer) const { | 2434 const PaintLayer* ancestorLayer) const { |
2436 LayoutPoint offsetFromRoot; | 2435 LayoutPoint offsetFromRoot; |
2437 convertToLayerCoords(ancestorLayer, offsetFromRoot); | 2436 convertToLayerCoords(ancestorLayer, offsetFromRoot); |
2438 return physicalBoundingBox(offsetFromRoot); | 2437 return physicalBoundingBox(offsetFromRoot); |
2439 } | 2438 } |
2440 | 2439 |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3254 } | 3253 } |
3255 | 3254 |
3256 void showLayerTree(const blink::LayoutObject* layoutObject) { | 3255 void showLayerTree(const blink::LayoutObject* layoutObject) { |
3257 if (!layoutObject) { | 3256 if (!layoutObject) { |
3258 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; | 3257 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; |
3259 return; | 3258 return; |
3260 } | 3259 } |
3261 showLayerTree(layoutObject->enclosingLayer()); | 3260 showLayerTree(layoutObject->enclosingLayer()); |
3262 } | 3261 } |
3263 #endif | 3262 #endif |
OLD | NEW |