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 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 FloatRect result; | 1322 FloatRect result; |
1323 for (size_t i = 0; i < quads.size(); ++i) | 1323 for (size_t i = 0; i < quads.size(); ++i) |
1324 result.unite(quads[i].boundingBox()); | 1324 result.unite(quads[i].boundingBox()); |
1325 | 1325 |
1326 return result; | 1326 return result; |
1327 } | 1327 } |
1328 | 1328 |
1329 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result) | 1329 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result) |
1330 { | 1330 { |
1331 if (hasLayer()) | 1331 if (hasLayer()) |
1332 result.unite(absoluteBoundingBoxRectIgnoringTransforms()); | 1332 result.unite(absoluteBoundingBoxRect()); |
1333 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) | 1333 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) |
1334 current->addAbsoluteRectForLayer(result); | 1334 current->addAbsoluteRectForLayer(result); |
1335 } | 1335 } |
1336 | 1336 |
1337 LayoutRect RenderObject::paintingRootRect(LayoutRect& topLevelRect) | 1337 LayoutRect RenderObject::paintingRootRect(LayoutRect& topLevelRect) |
1338 { | 1338 { |
1339 LayoutRect result = absoluteBoundingBoxRectIgnoringTransforms(); | 1339 LayoutRect result = absoluteBoundingBoxRect(); |
1340 topLevelRect = result; | 1340 topLevelRect = result; |
1341 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) | 1341 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) |
1342 current->addAbsoluteRectForLayer(result); | 1342 current->addAbsoluteRectForLayer(result); |
1343 return result; | 1343 return result; |
1344 } | 1344 } |
1345 | 1345 |
1346 void RenderObject::paint(PaintInfo&, const LayoutPoint&) | 1346 void RenderObject::paint(PaintInfo&, const LayoutPoint&) |
1347 { | 1347 { |
1348 } | 1348 } |
1349 | 1349 |
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3475 { | 3475 { |
3476 if (object1) { | 3476 if (object1) { |
3477 const WebCore::RenderObject* root = object1; | 3477 const WebCore::RenderObject* root = object1; |
3478 while (root->parent()) | 3478 while (root->parent()) |
3479 root = root->parent(); | 3479 root = root->parent(); |
3480 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3480 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3481 } | 3481 } |
3482 } | 3482 } |
3483 | 3483 |
3484 #endif | 3484 #endif |
OLD | NEW |