| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 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 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 | 1292 |
| 1293 // For history and compatibility reasons, we draw outline:auto (for focus ri
ngs) and normal style outline differently. | 1293 // For history and compatibility reasons, we draw outline:auto (for focus ri
ngs) and normal style outline differently. |
| 1294 // Focus rings enclose block visual overflows (of line boxes and descendants
), while normal outlines don't. | 1294 // Focus rings enclose block visual overflows (of line boxes and descendants
), while normal outlines don't. |
| 1295 IncludeBlockVisualOverflowOrNot outlineRectsShouldIncludeBlockVisualOverflow
() const | 1295 IncludeBlockVisualOverflowOrNot outlineRectsShouldIncludeBlockVisualOverflow
() const |
| 1296 { | 1296 { |
| 1297 return styleRef().outlineStyleIsAuto() ? IncludeBlockVisualOverflow : Do
ntIncludeBlockVisualOverflow; | 1297 return styleRef().outlineStyleIsAuto() ? IncludeBlockVisualOverflow : Do
ntIncludeBlockVisualOverflow; |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 // Collects rectangles enclosing visual overflows of the DOM subtree under t
his object. | 1300 // Collects rectangles enclosing visual overflows of the DOM subtree under t
his object. |
| 1301 // The rects also cover continuations which may be not in the layout subtree
of this object. | 1301 // The rects also cover continuations which may be not in the layout subtree
of this object. |
| 1302 // TODO(crbug.com/614781): Currently the result rects don't cover list marke
rs and outlines. |
| 1302 void addElementVisualOverflowRects(Vector<LayoutRect>& rects, const LayoutPo
int& additionalOffset) const | 1303 void addElementVisualOverflowRects(Vector<LayoutRect>& rects, const LayoutPo
int& additionalOffset) const |
| 1303 { | 1304 { |
| 1304 addOutlineRects(rects, additionalOffset, IncludeBlockVisualOverflow); | 1305 addOutlineRects(rects, additionalOffset, IncludeBlockVisualOverflow); |
| 1305 } | 1306 } |
| 1306 | 1307 |
| 1307 // Returns the rect enclosing united visual overflow of the DOM subtree unde
r this object. | 1308 // Returns the rect enclosing united visual overflow of the DOM subtree unde
r this object. |
| 1308 // It includes continuations which may be not in the layout subtree of this
object. | 1309 // It includes continuations which may be not in the layout subtree of this
object. |
| 1309 virtual IntRect absoluteElementBoundingBoxRect() const; | 1310 virtual IntRect absoluteElementBoundingBoxRect() const; |
| 1310 | 1311 |
| 1311 // Compute a list of hit-test rectangles per layer rooted at this layoutObje
ct. | 1312 // Compute a list of hit-test rectangles per layer rooted at this layoutObje
ct. |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 void showTree(const blink::LayoutObject*); | 2180 void showTree(const blink::LayoutObject*); |
| 2180 void showLineTree(const blink::LayoutObject*); | 2181 void showLineTree(const blink::LayoutObject*); |
| 2181 void showLayoutTree(const blink::LayoutObject* object1); | 2182 void showLayoutTree(const blink::LayoutObject* object1); |
| 2182 // We don't make object2 an optional parameter so that showLayoutTree | 2183 // We don't make object2 an optional parameter so that showLayoutTree |
| 2183 // can be called from gdb easily. | 2184 // can be called from gdb easily. |
| 2184 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2185 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2185 | 2186 |
| 2186 #endif | 2187 #endif |
| 2187 | 2188 |
| 2188 #endif // LayoutObject_h | 2189 #endif // LayoutObject_h |
| OLD | NEW |