| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 } | 434 } |
| 435 | 435 |
| 436 void LayoutBoxModelObject::addOutlineRectsForDescendant(const LayoutObject& desc
endant, Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, IncludeB
lockVisualOverflowOrNot includeBlockOverflows) const | 436 void LayoutBoxModelObject::addOutlineRectsForDescendant(const LayoutObject& desc
endant, Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, IncludeB
lockVisualOverflowOrNot includeBlockOverflows) const |
| 437 { | 437 { |
| 438 if (descendant.isText() || descendant.isListMarker()) | 438 if (descendant.isText() || descendant.isListMarker()) |
| 439 return; | 439 return; |
| 440 | 440 |
| 441 if (descendant.hasLayer()) { | 441 if (descendant.hasLayer()) { |
| 442 Vector<LayoutRect> layerOutlineRects; | 442 Vector<LayoutRect> layerOutlineRects; |
| 443 descendant.addOutlineRects(layerOutlineRects, LayoutPoint(), includeBloc
kOverflows); | 443 descendant.addOutlineRects(layerOutlineRects, LayoutPoint(), includeBloc
kOverflows); |
| 444 descendant.localToContainerRects(layerOutlineRects, this, LayoutPoint(),
additionalOffset); | 444 descendant.localToAncestorRects(layerOutlineRects, this, LayoutPoint(),
additionalOffset); |
| 445 rects.appendVector(layerOutlineRects); | 445 rects.appendVector(layerOutlineRects); |
| 446 return; | 446 return; |
| 447 } | 447 } |
| 448 | 448 |
| 449 if (descendant.isBox()) { | 449 if (descendant.isBox()) { |
| 450 descendant.addOutlineRects(rects, additionalOffset + toLayoutBox(descend
ant).locationOffset(), includeBlockOverflows); | 450 descendant.addOutlineRects(rects, additionalOffset + toLayoutBox(descend
ant).locationOffset(), includeBlockOverflows); |
| 451 return; | 451 return; |
| 452 } | 452 } |
| 453 | 453 |
| 454 if (descendant.isLayoutInline()) { | 454 if (descendant.isLayoutInline()) { |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 if (rootElementStyle->hasBackground()) | 1064 if (rootElementStyle->hasBackground()) |
| 1065 return false; | 1065 return false; |
| 1066 | 1066 |
| 1067 if (node() != document().firstBodyElement()) | 1067 if (node() != document().firstBodyElement()) |
| 1068 return false; | 1068 return false; |
| 1069 | 1069 |
| 1070 return true; | 1070 return true; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 } // namespace blink | 1073 } // namespace blink |
| OLD | NEW |