OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |