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

Side by Side Diff: sky/engine/core/rendering/RenderBox.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderBoxModelObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. 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
11 * License as published by the Free Software Foundation; either 11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version. 12 * version 2 of the License, or (at your option) any later version.
13 * 13 *
14 * This library is distributed in the hope that it will be useful, 14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details. 17 * Library General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU Library General Public License 19 * You should have received a copy of the GNU Library General Public License
20 * along with this library; see the file COPYING.LIB. If not, write to 20 * along with this library; see the file COPYING.LIB. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA. 22 * Boston, MA 02110-1301, USA.
23 * 23 *
24 */ 24 */
25 25
26 #include "config.h" 26 #include "sky/engine/config.h"
27 #include "core/rendering/RenderBox.h" 27 #include "sky/engine/core/rendering/RenderBox.h"
28 28
29 #include "core/dom/Document.h" 29 #include <math.h>
30 #include "core/editing/htmlediting.h"
31 #include "core/frame/FrameHost.h"
32 #include "core/frame/FrameView.h"
33 #include "core/frame/LocalFrame.h"
34 #include "core/frame/Settings.h"
35 #include "core/html/HTMLElement.h"
36 #include "core/page/AutoscrollController.h"
37 #include "core/page/EventHandler.h"
38 #include "core/page/Page.h"
39 #include "core/rendering/HitTestResult.h"
40 #include "core/rendering/PaintInfo.h"
41 #include "core/rendering/RenderFlexibleBox.h"
42 #include "core/rendering/RenderGeometryMap.h"
43 #include "core/rendering/RenderInline.h"
44 #include "core/rendering/RenderLayer.h"
45 #include "core/rendering/RenderView.h"
46 #include "core/rendering/compositing/RenderLayerCompositor.h"
47 #include "platform/LengthFunctions.h"
48 #include "platform/geometry/FloatQuad.h"
49 #include "platform/geometry/TransformState.h"
50 #include "platform/graphics/GraphicsContextStateSaver.h"
51 #include <algorithm> 30 #include <algorithm>
52 #include <math.h> 31 #include "sky/engine/core/dom/Document.h"
32 #include "sky/engine/core/editing/htmlediting.h"
33 #include "sky/engine/core/frame/FrameHost.h"
34 #include "sky/engine/core/frame/FrameView.h"
35 #include "sky/engine/core/frame/LocalFrame.h"
36 #include "sky/engine/core/frame/Settings.h"
37 #include "sky/engine/core/html/HTMLElement.h"
38 #include "sky/engine/core/page/AutoscrollController.h"
39 #include "sky/engine/core/page/EventHandler.h"
40 #include "sky/engine/core/page/Page.h"
41 #include "sky/engine/core/rendering/HitTestResult.h"
42 #include "sky/engine/core/rendering/PaintInfo.h"
43 #include "sky/engine/core/rendering/RenderFlexibleBox.h"
44 #include "sky/engine/core/rendering/RenderGeometryMap.h"
45 #include "sky/engine/core/rendering/RenderInline.h"
46 #include "sky/engine/core/rendering/RenderLayer.h"
47 #include "sky/engine/core/rendering/RenderView.h"
48 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h"
49 #include "sky/engine/platform/LengthFunctions.h"
50 #include "sky/engine/platform/geometry/FloatQuad.h"
51 #include "sky/engine/platform/geometry/TransformState.h"
52 #include "sky/engine/platform/graphics/GraphicsContextStateSaver.h"
53 53
54 namespace blink { 54 namespace blink {
55 55
56 // Size of border belt for autoscroll. When mouse pointer in border belt, 56 // Size of border belt for autoscroll. When mouse pointer in border belt,
57 // autoscroll is started. 57 // autoscroll is started.
58 static const int autoscrollBeltSize = 20; 58 static const int autoscrollBeltSize = 20;
59 static const unsigned backgroundObscurationTestMaxDepth = 4; 59 static const unsigned backgroundObscurationTestMaxDepth = 4;
60 60
61 RenderBox::RenderBox(ContainerNode* node) 61 RenderBox::RenderBox(ContainerNode* node)
62 : RenderBoxModelObject(node) 62 : RenderBoxModelObject(node)
(...skipping 3448 matching lines...) Expand 10 before | Expand all | Expand 10 after
3511 3511
3512 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style) 3512 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style)
3513 { 3513 {
3514 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor); 3514 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor);
3515 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage(); 3515 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage();
3516 ASSERT(hasBackground == style.hasBackground()); 3516 ASSERT(hasBackground == style.hasBackground());
3517 hasBorder = style.hasBorder(); 3517 hasBorder = style.hasBorder();
3518 } 3518 }
3519 3519
3520 } // namespace blink 3520 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698