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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Codereview update 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // normalized ScrollManager-like scrolling path and we should get rid of 989 // normalized ScrollManager-like scrolling path and we should get rid of
990 // of this override. All frame scrolling should be handled by 990 // of this override. All frame scrolling should be handled by
991 // ViewportScrollCallback. 991 // ViewportScrollCallback.
992 992
993 if (!frameView()) 993 if (!frameView())
994 return ScrollResult(false, false, delta.width(), delta.height()); 994 return ScrollResult(false, false, delta.width(), delta.height());
995 995
996 return frameView()->getScrollableArea()->userScroll(granularity, delta); 996 return frameView()->getScrollableArea()->userScroll(granularity, delta);
997 } 997 }
998 998
999 LayoutRect LayoutView::debugRect() const
1000 {
1001 LayoutRect r;
1002 LayoutBlock* cb = containingBlock();
1003 if (cb)
1004 cb->adjustForTableCells(r);
1005
1006 r.setWidth(LayoutUnit(viewWidth(IncludeScrollbars)));
1007 r.setHeight(LayoutUnit(viewHeight(IncludeScrollbars)));
1008
1009 return r;
1010 }
1011
999 } // namespace blink 1012 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698