Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2345543002: debugging for crbug.com/646539
Patch Set: 3 TUs, 2 .h Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 enum IncludeBlockVisualOverflowOrNot { 1268 enum IncludeBlockVisualOverflowOrNot {
1269 DontIncludeBlockVisualOverflow, 1269 DontIncludeBlockVisualOverflow,
1270 IncludeBlockVisualOverflow, 1270 IncludeBlockVisualOverflow,
1271 }; 1271 };
1272 virtual void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additio nalOffset, IncludeBlockVisualOverflowOrNot) const { } 1272 virtual void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additio nalOffset, IncludeBlockVisualOverflowOrNot) const { }
1273 1273
1274 // For history and compatibility reasons, we draw outline:auto (for focus ri ngs) and normal style outline differently. 1274 // For history and compatibility reasons, we draw outline:auto (for focus ri ngs) and normal style outline differently.
1275 // Focus rings enclose block visual overflows (of line boxes and descendants ), while normal outlines don't. 1275 // Focus rings enclose block visual overflows (of line boxes and descendants ), while normal outlines don't.
1276 IncludeBlockVisualOverflowOrNot outlineRectsShouldIncludeBlockVisualOverflow () const 1276 IncludeBlockVisualOverflowOrNot outlineRectsShouldIncludeBlockVisualOverflow () const
1277 { 1277 {
1278 return styleRef().outlineStyleIsAuto() ? IncludeBlockVisualOverflow : Do ntIncludeBlockVisualOverflow; 1278 return IncludeBlockVisualOverflow ;
1279 } 1279 }
1280 1280
1281 // Collects rectangles enclosing visual overflows of the DOM subtree under t his object. 1281 // Collects rectangles enclosing visual overflows of the DOM subtree under t his object.
1282 // The rects also cover continuations which may be not in the layout subtree of this object. 1282 // The rects also cover continuations which may be not in the layout subtree of this object.
1283 // TODO(crbug.com/614781): Currently the result rects don't cover list marke rs and outlines. 1283 // TODO(crbug.com/614781): Currently the result rects don't cover list marke rs and outlines.
1284 void addElementVisualOverflowRects(Vector<LayoutRect>& rects, const LayoutPo int& additionalOffset) const 1284 void addElementVisualOverflowRects(Vector<LayoutRect>& rects, const LayoutPo int& additionalOffset) const
1285 { 1285 {
1286 addOutlineRects(rects, additionalOffset, IncludeBlockVisualOverflow); 1286 addOutlineRects(rects, additionalOffset, IncludeBlockVisualOverflow);
1287 } 1287 }
1288 1288
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 void showTree(const blink::LayoutObject*); 2129 void showTree(const blink::LayoutObject*);
2130 void showLineTree(const blink::LayoutObject*); 2130 void showLineTree(const blink::LayoutObject*);
2131 void showLayoutTree(const blink::LayoutObject* object1); 2131 void showLayoutTree(const blink::LayoutObject* object1);
2132 // We don't make object2 an optional parameter so that showLayoutTree 2132 // We don't make object2 an optional parameter so that showLayoutTree
2133 // can be called from gdb easily. 2133 // can be called from gdb easily.
2134 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2134 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2135 2135
2136 #endif 2136 #endif
2137 2137
2138 #endif // LayoutObject_h 2138 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698