| 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 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 | 1286 |
| 1287 // For history and compatibility reasons, we draw outline:auto (for focus ri
ngs) and normal style outline differently. | 1287 // For history and compatibility reasons, we draw outline:auto (for focus ri
ngs) and normal style outline differently. |
| 1288 // Focus rings enclose block visual overflows (of line boxes and descendants
), while normal outlines don't. | 1288 // Focus rings enclose block visual overflows (of line boxes and descendants
), while normal outlines don't. |
| 1289 IncludeBlockVisualOverflowOrNot outlineRectsShouldIncludeBlockVisualOverflow
() const | 1289 IncludeBlockVisualOverflowOrNot outlineRectsShouldIncludeBlockVisualOverflow
() const |
| 1290 { | 1290 { |
| 1291 return styleRef().outlineStyleIsAuto() ? IncludeBlockVisualOverflow : Do
ntIncludeBlockVisualOverflow; | 1291 return styleRef().outlineStyleIsAuto() ? IncludeBlockVisualOverflow : Do
ntIncludeBlockVisualOverflow; |
| 1292 } | 1292 } |
| 1293 | 1293 |
| 1294 // Collects rectangles enclosing visual overflows of the DOM subtree under t
his object. | 1294 // Collects rectangles enclosing visual overflows of the DOM subtree under t
his object. |
| 1295 // The rects also cover continuations which may be not in the layout subtree
of this object. | 1295 // The rects also cover continuations which may be not in the layout subtree
of this object. |
| 1296 // TODO(crbug.com/614781): Currently the result rects don't cover list marke
rs and outlines. |
| 1296 void addElementVisualOverflowRects(Vector<LayoutRect>& rects, const LayoutPo
int& additionalOffset) const | 1297 void addElementVisualOverflowRects(Vector<LayoutRect>& rects, const LayoutPo
int& additionalOffset) const |
| 1297 { | 1298 { |
| 1298 addOutlineRects(rects, additionalOffset, IncludeBlockVisualOverflow); | 1299 addOutlineRects(rects, additionalOffset, IncludeBlockVisualOverflow); |
| 1299 } | 1300 } |
| 1300 | 1301 |
| 1301 // Returns the rect enclosing united visual overflow of the DOM subtree unde
r this object. | 1302 // Returns the rect enclosing united visual overflow of the DOM subtree unde
r this object. |
| 1302 // It includes continuations which may be not in the layout subtree of this
object. | 1303 // It includes continuations which may be not in the layout subtree of this
object. |
| 1303 virtual IntRect absoluteElementBoundingBoxRect() const; | 1304 virtual IntRect absoluteElementBoundingBoxRect() const; |
| 1304 | 1305 |
| 1305 // Compute a list of hit-test rectangles per layer rooted at this layoutObje
ct. | 1306 // Compute a list of hit-test rectangles per layer rooted at this layoutObje
ct. |
| (...skipping 873 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 |