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

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

Issue 2015583003: Remove assorted unnecessary includes in core/layout/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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) 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
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/LayoutObject.h" 27 #include "core/layout/LayoutObject.h"
28 28
29 #include "core/HTMLNames.h"
30 #include "core/animation/ElementAnimations.h" 29 #include "core/animation/ElementAnimations.h"
31 #include "core/css/resolver/StyleResolver.h" 30 #include "core/css/resolver/StyleResolver.h"
32 #include "core/dom/AXObjectCache.h" 31 #include "core/dom/AXObjectCache.h"
33 #include "core/dom/ElementTraversal.h" 32 #include "core/dom/ElementTraversal.h"
34 #include "core/dom/StyleChangeReason.h" 33 #include "core/dom/StyleChangeReason.h"
35 #include "core/dom/StyleEngine.h" 34 #include "core/dom/StyleEngine.h"
36 #include "core/dom/shadow/ShadowRoot.h" 35 #include "core/dom/shadow/ShadowRoot.h"
37 #include "core/editing/EditingBoundary.h"
38 #include "core/editing/EditingUtilities.h" 36 #include "core/editing/EditingUtilities.h"
39 #include "core/editing/FrameSelection.h" 37 #include "core/editing/FrameSelection.h"
40 #include "core/editing/TextAffinity.h" 38 #include "core/editing/TextAffinity.h"
41 #include "core/fetch/ResourceLoader.h"
42 #include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h" 39 #include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h"
43 #include "core/frame/EventHandlerRegistry.h" 40 #include "core/frame/EventHandlerRegistry.h"
44 #include "core/frame/FrameView.h" 41 #include "core/frame/FrameView.h"
45 #include "core/frame/LocalFrame.h" 42 #include "core/frame/LocalFrame.h"
46 #include "core/frame/Settings.h" 43 #include "core/frame/Settings.h"
47 #include "core/frame/UseCounter.h"
48 #include "core/html/HTMLAnchorElement.h"
49 #include "core/html/HTMLElement.h" 44 #include "core/html/HTMLElement.h"
50 #include "core/html/HTMLHtmlElement.h" 45 #include "core/html/HTMLHtmlElement.h"
51 #include "core/html/HTMLTableCellElement.h" 46 #include "core/html/HTMLTableCellElement.h"
52 #include "core/html/HTMLTableElement.h" 47 #include "core/html/HTMLTableElement.h"
53 #include "core/input/EventHandler.h" 48 #include "core/input/EventHandler.h"
54 #include "core/inspector/InstanceCounters.h" 49 #include "core/inspector/InstanceCounters.h"
55 #include "core/layout/HitTestResult.h" 50 #include "core/layout/HitTestResult.h"
56 #include "core/layout/LayoutCounter.h" 51 #include "core/layout/LayoutCounter.h"
57 #include "core/layout/LayoutDeprecatedFlexibleBox.h" 52 #include "core/layout/LayoutDeprecatedFlexibleBox.h"
58 #include "core/layout/LayoutFlexibleBox.h" 53 #include "core/layout/LayoutFlexibleBox.h"
59 #include "core/layout/LayoutFlowThread.h" 54 #include "core/layout/LayoutFlowThread.h"
60 #include "core/layout/LayoutGeometryMap.h"
61 #include "core/layout/LayoutGrid.h" 55 #include "core/layout/LayoutGrid.h"
62 #include "core/layout/LayoutImage.h" 56 #include "core/layout/LayoutImage.h"
63 #include "core/layout/LayoutImageResourceStyleImage.h" 57 #include "core/layout/LayoutImageResourceStyleImage.h"
64 #include "core/layout/LayoutInline.h" 58 #include "core/layout/LayoutInline.h"
65 #include "core/layout/LayoutListItem.h" 59 #include "core/layout/LayoutListItem.h"
66 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" 60 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h"
67 #include "core/layout/LayoutObjectInlines.h"
68 #include "core/layout/LayoutPart.h" 61 #include "core/layout/LayoutPart.h"
69 #include "core/layout/LayoutScrollbarPart.h" 62 #include "core/layout/LayoutScrollbarPart.h"
70 #include "core/layout/LayoutTableCaption.h" 63 #include "core/layout/LayoutTableCaption.h"
71 #include "core/layout/LayoutTableCell.h" 64 #include "core/layout/LayoutTableCell.h"
72 #include "core/layout/LayoutTableCol.h" 65 #include "core/layout/LayoutTableCol.h"
73 #include "core/layout/LayoutTableRow.h" 66 #include "core/layout/LayoutTableRow.h"
74 #include "core/layout/LayoutTheme.h" 67 #include "core/layout/LayoutTheme.h"
75 #include "core/layout/LayoutView.h" 68 #include "core/layout/LayoutView.h"
76 #include "core/layout/compositing/PaintLayerCompositor.h"
77 #include "core/page/AutoscrollController.h" 69 #include "core/page/AutoscrollController.h"
78 #include "core/page/Page.h" 70 #include "core/page/Page.h"
79 #include "core/paint/ObjectPaintProperties.h" 71 #include "core/paint/ObjectPaintProperties.h"
80 #include "core/paint/ObjectPainter.h"
81 #include "core/paint/PaintInfo.h"
82 #include "core/paint/PaintLayer.h" 72 #include "core/paint/PaintLayer.h"
83 #include "core/style/ContentData.h" 73 #include "core/style/ContentData.h"
84 #include "core/style/CursorData.h" 74 #include "core/style/CursorData.h"
85 #include "core/style/ShadowList.h"
86 #include "platform/HostWindow.h" 75 #include "platform/HostWindow.h"
87 #include "platform/RuntimeEnabledFeatures.h" 76 #include "platform/RuntimeEnabledFeatures.h"
88 #include "platform/TraceEvent.h"
89 #include "platform/TracedValue.h" 77 #include "platform/TracedValue.h"
90 #include "platform/geometry/TransformState.h" 78 #include "platform/geometry/TransformState.h"
91 #include "platform/graphics/GraphicsContext.h"
92 #include "platform/graphics/paint/PaintController.h"
93 #include "wtf/allocator/Partitions.h" 79 #include "wtf/allocator/Partitions.h"
94 #include "wtf/text/StringBuilder.h" 80 #include "wtf/text/StringBuilder.h"
95 #include "wtf/text/WTFString.h" 81 #include "wtf/text/WTFString.h"
96 #include <algorithm> 82 #include <algorithm>
97 #ifndef NDEBUG 83 #ifndef NDEBUG
98 #include <stdio.h> 84 #include <stdio.h>
99 #endif 85 #endif
100 86
101 namespace blink { 87 namespace blink {
102 88
103 namespace { 89 namespace {
104 90
105 static bool gModifyLayoutTreeStructureAnyState = false; 91 static bool gModifyLayoutTreeStructureAnyState = false;
106 92
107 static bool gDisablePaintInvalidationStateAsserts = false; 93 static bool gDisablePaintInvalidationStateAsserts = false;
108 94
109 } // namespace 95 } // namespace
110 96
111 using namespace HTMLNames;
112
113 const LayoutUnit& caretWidth() 97 const LayoutUnit& caretWidth()
114 { 98 {
115 static LayoutUnit gCaretWidth(1); 99 static LayoutUnit gCaretWidth(1);
116 return gCaretWidth; 100 return gCaretWidth;
117 } 101 }
118 102
119 #if ENABLE(ASSERT) 103 #if ENABLE(ASSERT)
120 104
121 LayoutObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope(Layou tObject& layoutObject) 105 LayoutObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope(Layou tObject& layoutObject)
122 : m_layoutObject(layoutObject) 106 : m_layoutObject(layoutObject)
(...skipping 3578 matching lines...) Expand 10 before | Expand all | Expand 10 after
3701 const blink::LayoutObject* root = object1; 3685 const blink::LayoutObject* root = object1;
3702 while (root->parent()) 3686 while (root->parent())
3703 root = root->parent(); 3687 root = root->parent();
3704 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3688 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3705 } else { 3689 } else {
3706 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3690 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3707 } 3691 }
3708 } 3692 }
3709 3693
3710 #endif 3694 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698