| 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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result) | 1020 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result) |
| 1021 { | 1021 { |
| 1022 if (hasLayer()) | 1022 if (hasLayer()) |
| 1023 result.unite(absoluteBoundingBoxRect()); | 1023 result.unite(absoluteBoundingBoxRect()); |
| 1024 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) | 1024 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) |
| 1025 current->addAbsoluteRectForLayer(result); | 1025 current->addAbsoluteRectForLayer(result); |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 LayoutRect RenderObject::paintingRootRect(LayoutRect& topLevelRect) | |
| 1029 { | |
| 1030 LayoutRect result = absoluteBoundingBoxRect(); | |
| 1031 topLevelRect = result; | |
| 1032 for (RenderObject* current = slowFirstChild(); current; current = current->n
extSibling()) | |
| 1033 current->addAbsoluteRectForLayer(result); | |
| 1034 return result; | |
| 1035 } | |
| 1036 | |
| 1037 void RenderObject::paint(PaintInfo&, const LayoutPoint&) | 1028 void RenderObject::paint(PaintInfo&, const LayoutPoint&) |
| 1038 { | 1029 { |
| 1039 } | 1030 } |
| 1040 | 1031 |
| 1041 const RenderLayerModelObject* RenderObject::containerForPaintInvalidation() cons
t | 1032 const RenderLayerModelObject* RenderObject::containerForPaintInvalidation() cons
t |
| 1042 { | 1033 { |
| 1043 return isRooted() ? view() : 0; | 1034 return isRooted() ? view() : 0; |
| 1044 } | 1035 } |
| 1045 | 1036 |
| 1046 const RenderLayerModelObject* RenderObject::adjustCompositedContainerForSpecialA
ncestors(const RenderLayerModelObject* paintInvalidationContainer) const | 1037 const RenderLayerModelObject* RenderObject::adjustCompositedContainerForSpecialA
ncestors(const RenderLayerModelObject* paintInvalidationContainer) const |
| (...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 { | 1999 { |
| 2009 if (object1) { | 2000 if (object1) { |
| 2010 const blink::RenderObject* root = object1; | 2001 const blink::RenderObject* root = object1; |
| 2011 while (root->parent()) | 2002 while (root->parent()) |
| 2012 root = root->parent(); | 2003 root = root->parent(); |
| 2013 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2004 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 2014 } | 2005 } |
| 2015 } | 2006 } |
| 2016 | 2007 |
| 2017 #endif | 2008 #endif |
| OLD | NEW |