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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 m_data.m_rareData->setLayoutObject(layoutObject); | 513 m_data.m_rareData->setLayoutObject(layoutObject); |
514 else | 514 else |
515 m_data.m_layoutObject = layoutObject; | 515 m_data.m_layoutObject = layoutObject; |
516 } | 516 } |
517 | 517 |
518 // Use these two methods with caution. | 518 // Use these two methods with caution. |
519 LayoutBox* layoutBox() const; | 519 LayoutBox* layoutBox() const; |
520 LayoutBoxModelObject* layoutBoxModelObject() const; | 520 LayoutBoxModelObject* layoutBoxModelObject() const; |
521 | 521 |
522 struct AttachContext { | 522 struct AttachContext { |
| 523 STACK_ALLOCATED(); |
523 ComputedStyle* resolvedStyle; | 524 ComputedStyle* resolvedStyle; |
524 bool performingReattach; | 525 bool performingReattach; |
525 | 526 |
526 AttachContext() : resolvedStyle(nullptr), performingReattach(false) { } | 527 AttachContext() : resolvedStyle(nullptr), performingReattach(false) { } |
527 }; | 528 }; |
528 | 529 |
529 // Attaches this node to the layout tree. This calculates the style to be ap
plied to the node and creates an | 530 // Attaches this node to the layout tree. This calculates the style to be ap
plied to the node and creates an |
530 // appropriate LayoutObject which will be inserted into the tree (except whe
n the style has display: none). This | 531 // appropriate LayoutObject which will be inserted into the tree (except whe
n the style has display: none). This |
531 // makes the node visible in the FrameView. | 532 // makes the node visible in the FrameView. |
532 virtual void attach(const AttachContext& = AttachContext()); | 533 virtual void attach(const AttachContext& = AttachContext()); |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 } // namespace blink | 900 } // namespace blink |
900 | 901 |
901 #ifndef NDEBUG | 902 #ifndef NDEBUG |
902 // Outside the WebCore namespace for ease of invocation from gdb. | 903 // Outside the WebCore namespace for ease of invocation from gdb. |
903 void showNode(const blink::Node*); | 904 void showNode(const blink::Node*); |
904 void showTree(const blink::Node*); | 905 void showTree(const blink::Node*); |
905 void showNodePath(const blink::Node*); | 906 void showNodePath(const blink::Node*); |
906 #endif | 907 #endif |
907 | 908 |
908 #endif // Node_h | 909 #endif // Node_h |
OLD | NEW |