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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 * (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, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public 11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either 12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version. 13 * version 2 of the License, or (at your option) any later version.
14 * 14 *
15 * This library is distributed in the hope that it will be useful, 15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details. 18 * Library General Public License for more details.
19 * 19 *
20 * You should have received a copy of the GNU Library General Public License 20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to 21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 * 24 *
25 */ 25 */
26 26
27 #include "core/layout/LayoutBox.h" 27 #include "core/layout/LayoutBox.h"
28 28
29 #include <math.h>
30 #include <algorithm>
29 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
30 #include "core/editing/EditingUtilities.h" 32 #include "core/editing/EditingUtilities.h"
31 #include "core/frame/FrameView.h" 33 #include "core/frame/FrameView.h"
32 #include "core/frame/LocalFrame.h" 34 #include "core/frame/LocalFrame.h"
33 #include "core/frame/Settings.h" 35 #include "core/frame/Settings.h"
34 #include "core/html/HTMLElement.h" 36 #include "core/html/HTMLElement.h"
35 #include "core/html/HTMLFrameElementBase.h" 37 #include "core/html/HTMLFrameElementBase.h"
36 #include "core/html/HTMLFrameOwnerElement.h" 38 #include "core/html/HTMLFrameOwnerElement.h"
37 #include "core/input/EventHandler.h" 39 #include "core/input/EventHandler.h"
38 #include "core/layout/HitTestResult.h" 40 #include "core/layout/HitTestResult.h"
(...skipping 21 matching lines...) Expand all
60 #include "core/paint/BackgroundImageGeometry.h" 62 #include "core/paint/BackgroundImageGeometry.h"
61 #include "core/paint/BoxPaintInvalidator.h" 63 #include "core/paint/BoxPaintInvalidator.h"
62 #include "core/paint/BoxPainter.h" 64 #include "core/paint/BoxPainter.h"
63 #include "core/paint/PaintLayer.h" 65 #include "core/paint/PaintLayer.h"
64 #include "core/style/ShadowList.h" 66 #include "core/style/ShadowList.h"
65 #include "platform/LengthFunctions.h" 67 #include "platform/LengthFunctions.h"
66 #include "platform/geometry/DoubleRect.h" 68 #include "platform/geometry/DoubleRect.h"
67 #include "platform/geometry/FloatQuad.h" 69 #include "platform/geometry/FloatQuad.h"
68 #include "platform/geometry/FloatRoundedRect.h" 70 #include "platform/geometry/FloatRoundedRect.h"
69 #include "wtf/PtrUtil.h" 71 #include "wtf/PtrUtil.h"
70 #include <algorithm>
71 #include <math.h>
72 72
73 namespace blink { 73 namespace blink {
74 74
75 // Used by flexible boxes when flexing this element and by table cells. 75 // Used by flexible boxes when flexing this element and by table cells.
76 typedef WTF::HashMap<const LayoutBox*, LayoutUnit> OverrideSizeMap; 76 typedef WTF::HashMap<const LayoutBox*, LayoutUnit> OverrideSizeMap;
77 77
78 static OverrideSizeMap* gExtraInlineOffsetMap = nullptr; 78 static OverrideSizeMap* gExtraInlineOffsetMap = nullptr;
79 static OverrideSizeMap* gExtraBlockOffsetMap = nullptr; 79 static OverrideSizeMap* gExtraBlockOffsetMap = nullptr;
80 80
81 // Size of border belt for autoscroll. When mouse pointer in border belt, 81 // Size of border belt for autoscroll. When mouse pointer in border belt,
(...skipping 5632 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 block->adjustChildDebugRect(rect); 5714 block->adjustChildDebugRect(rect);
5715 5715
5716 return rect; 5716 return rect;
5717 } 5717 }
5718 5718
5719 bool LayoutBox::shouldClipOverflow() const { 5719 bool LayoutBox::shouldClipOverflow() const {
5720 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); 5720 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip();
5721 } 5721 }
5722 5722
5723 } // namespace blink 5723 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698