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: Source/core/dom/NodeRenderingContext.cpp

Issue 17480002: Remove unused includes from core/accessibility, core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased ; update <wtf/Foo.h> to "wtf/Foo.h" in changed files Created 7 years, 6 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
« no previous file with comments | « Source/core/dom/NodeRenderingContext.h ('k') | Source/core/dom/Position.cpp » ('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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * Copyright (C) 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2011 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
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 "config.h"
27 #include "core/dom/NodeRenderingContext.h" 27 #include "core/dom/NodeRenderingContext.h"
28 28
29 #include "HTMLNames.h"
30 #include "SVGNames.h" 29 #include "SVGNames.h"
31 #include "core/css/resolver/StyleResolver.h" 30 #include "core/css/resolver/StyleResolver.h"
32 #include "core/dom/ContainerNode.h" 31 #include "core/dom/ContainerNode.h"
33 #include "core/dom/FullscreenController.h" 32 #include "core/dom/FullscreenController.h"
34 #include "core/dom/Node.h" 33 #include "core/dom/Node.h"
35 #include "core/dom/PseudoElement.h"
36 #include "core/dom/Text.h" 34 #include "core/dom/Text.h"
37 #include "core/dom/shadow/ContentDistributor.h"
38 #include "core/dom/shadow/ElementShadow.h"
39 #include "core/dom/shadow/ShadowRoot.h"
40 #include "core/html/HTMLInputElement.h"
41 #include "core/html/shadow/HTMLContentElement.h"
42 #include "core/html/shadow/HTMLShadowElement.h" 35 #include "core/html/shadow/HTMLShadowElement.h"
43 #include "core/rendering/FlowThreadController.h" 36 #include "core/rendering/FlowThreadController.h"
44 #include "core/rendering/RenderFullScreen.h" 37 #include "core/rendering/RenderFullScreen.h"
45 #include "core/rendering/RenderNamedFlowThread.h" 38 #include "core/rendering/RenderNamedFlowThread.h"
46 #include "core/rendering/RenderObject.h" 39 #include "core/rendering/RenderObject.h"
47 #include "core/rendering/RenderText.h" 40 #include "core/rendering/RenderText.h"
48 #include "core/rendering/RenderView.h" 41 #include "core/rendering/RenderView.h"
49 #include "core/rendering/style/StyleInheritedData.h"
50 42
51 namespace WebCore { 43 namespace WebCore {
52 44
53 using namespace HTMLNames;
54
55 NodeRenderingContext::NodeRenderingContext(Node* node) 45 NodeRenderingContext::NodeRenderingContext(Node* node)
56 : m_node(node) 46 : m_node(node)
57 , m_parentFlowRenderer(0) 47 , m_parentFlowRenderer(0)
58 { 48 {
59 m_renderingParent = NodeRenderingTraversal::parent(node, &m_parentDetails); 49 m_renderingParent = NodeRenderingTraversal::parent(node, &m_parentDetails);
60 } 50 }
61 51
62 NodeRenderingContext::NodeRenderingContext(Node* node, RenderStyle* style) 52 NodeRenderingContext::NodeRenderingContext(Node* node, RenderStyle* style)
63 : m_node(node) 53 : m_node(node)
64 , m_renderingParent(0) 54 , m_renderingParent(0)
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 newRenderer->setFlowThreadState(parentRenderer->flowThreadState()); 308 newRenderer->setFlowThreadState(parentRenderer->flowThreadState());
319 309
320 RenderObject* nextRenderer = this->nextRenderer(); 310 RenderObject* nextRenderer = this->nextRenderer();
321 textNode->setRenderer(newRenderer); 311 textNode->setRenderer(newRenderer);
322 // Parent takes care of the animations, no need to call setAnimatableStyle. 312 // Parent takes care of the animations, no need to call setAnimatableStyle.
323 newRenderer->setStyle(m_style.release()); 313 newRenderer->setStyle(m_style.release());
324 parentRenderer->addChild(newRenderer, nextRenderer); 314 parentRenderer->addChild(newRenderer, nextRenderer);
325 } 315 }
326 316
327 } 317 }
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRenderingContext.h ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698