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

Side by Side Diff: Source/core/dom/Node.h

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/core/dom/Node.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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class NodeList; 68 class NodeList;
69 class NodeListsNodeData; 69 class NodeListsNodeData;
70 class NodeRareData; 70 class NodeRareData;
71 class PlatformGestureEvent; 71 class PlatformGestureEvent;
72 class PlatformKeyboardEvent; 72 class PlatformKeyboardEvent;
73 class PlatformMouseEvent; 73 class PlatformMouseEvent;
74 class PlatformWheelEvent; 74 class PlatformWheelEvent;
75 class QualifiedName; 75 class QualifiedName;
76 class RadioNodeList; 76 class RadioNodeList;
77 class RegisteredEventListener; 77 class RegisteredEventListener;
78 class RenderBox; 78 class LayoutBox;
79 class LayoutBoxModelObject; 79 class LayoutBoxModelObject;
80 class LayoutObject; 80 class LayoutObject;
81 class LayoutStyle; 81 class LayoutStyle;
82 class SVGQualifiedName; 82 class SVGQualifiedName;
83 class ShadowRoot; 83 class ShadowRoot;
84 template <typename NodeType> class StaticNodeTypeList; 84 template <typename NodeType> class StaticNodeTypeList;
85 using StaticNodeList = StaticNodeTypeList<Node>; 85 using StaticNodeList = StaticNodeTypeList<Node>;
86 class TagCollection; 86 class TagCollection;
87 class Text; 87 class Text;
88 class TouchEvent; 88 class TouchEvent;
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 LayoutObject* renderer() const { return hasRareData() ? m_data.m_rareData->r enderer() : m_data.m_renderer; }; 502 LayoutObject* renderer() const { return hasRareData() ? m_data.m_rareData->r enderer() : m_data.m_renderer; };
503 void setRenderer(LayoutObject* renderer) 503 void setRenderer(LayoutObject* renderer)
504 { 504 {
505 if (hasRareData()) 505 if (hasRareData())
506 m_data.m_rareData->setRenderer(renderer); 506 m_data.m_rareData->setRenderer(renderer);
507 else 507 else
508 m_data.m_renderer = renderer; 508 m_data.m_renderer = renderer;
509 } 509 }
510 510
511 // Use these two methods with caution. 511 // Use these two methods with caution.
512 RenderBox* renderBox() const; 512 LayoutBox* layoutBox() const;
513 LayoutBoxModelObject* layoutBoxModelObject() const; 513 LayoutBoxModelObject* layoutBoxModelObject() const;
514 514
515 struct AttachContext { 515 struct AttachContext {
516 LayoutStyle* resolvedStyle; 516 LayoutStyle* resolvedStyle;
517 bool performingReattach; 517 bool performingReattach;
518 518
519 AttachContext() : resolvedStyle(nullptr), performingReattach(false) { } 519 AttachContext() : resolvedStyle(nullptr), performingReattach(false) { }
520 }; 520 };
521 521
522 // Attaches this node to the rendering tree. This calculates the style to be applied to the node and creates an 522 // Attaches this node to the rendering tree. This calculates the style to be applied to the node and creates an
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 } // namespace blink 900 } // namespace blink
901 901
902 #ifndef NDEBUG 902 #ifndef NDEBUG
903 // Outside the WebCore namespace for ease of invocation from gdb. 903 // Outside the WebCore namespace for ease of invocation from gdb.
904 void showNode(const blink::Node*); 904 void showNode(const blink::Node*);
905 void showTree(const blink::Node*); 905 void showTree(const blink::Node*);
906 void showNodePath(const blink::Node*); 906 void showNodePath(const blink::Node*);
907 #endif 907 #endif
908 908
909 #endif // Node_h 909 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698