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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
5 * reserved. | 5 * reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 void RecalcTextStyle(StyleRecalcChange); | 56 void RecalcTextStyle(StyleRecalcChange); |
57 void RebuildTextLayoutTree(Text* next_text_sibling); | 57 void RebuildTextLayoutTree(Text* next_text_sibling); |
58 bool TextLayoutObjectIsNeeded(const ComputedStyle&, | 58 bool TextLayoutObjectIsNeeded(const ComputedStyle&, |
59 const LayoutObject& parent) const; | 59 const LayoutObject& parent) const; |
60 LayoutText* CreateTextLayoutObject(const ComputedStyle&); | 60 LayoutText* CreateTextLayoutObject(const ComputedStyle&); |
61 void UpdateTextLayoutObject(unsigned offset_of_replaced_data, | 61 void UpdateTextLayoutObject(unsigned offset_of_replaced_data, |
62 unsigned length_of_replaced_data); | 62 unsigned length_of_replaced_data); |
63 | 63 |
64 void AttachLayoutTree(const AttachContext& = AttachContext()) final; | 64 void AttachLayoutTree(const AttachContext& = AttachContext()) final; |
65 void ReattachLayoutTreeIfNeeded(const AttachContext& = AttachContext()); | 65 void ReattachLayoutTreeIfNeeded(); |
66 | 66 |
67 bool CanContainRangeEndPoint() const final { return true; } | 67 bool CanContainRangeEndPoint() const final { return true; } |
68 NodeType getNodeType() const override; | 68 NodeType getNodeType() const override; |
69 | 69 |
70 DECLARE_VIRTUAL_TRACE(); | 70 DECLARE_VIRTUAL_TRACE(); |
71 | 71 |
72 protected: | 72 protected: |
73 Text(TreeScope& tree_scope, const String& data, ConstructionType type) | 73 Text(TreeScope& tree_scope, const String& data, ConstructionType type) |
74 : CharacterData(tree_scope, data, type) {} | 74 : CharacterData(tree_scope, data, type) {} |
75 | 75 |
76 private: | 76 private: |
77 String nodeName() const override; | 77 String nodeName() const override; |
78 Node* cloneNode(bool deep, ExceptionState&) final; | 78 Node* cloneNode(bool deep, ExceptionState&) final; |
79 | 79 |
80 bool IsTextNode() const = | 80 bool IsTextNode() const = |
81 delete; // This will catch anyone doing an unnecessary check. | 81 delete; // This will catch anyone doing an unnecessary check. |
82 | 82 |
83 bool NeedsWhitespaceLayoutObject(); | 83 bool NeedsWhitespaceLayoutObject(); |
84 | 84 |
85 virtual Text* CloneWithData(const String&); | 85 virtual Text* CloneWithData(const String&); |
86 }; | 86 }; |
87 | 87 |
88 DEFINE_NODE_TYPE_CASTS(Text, IsTextNode()); | 88 DEFINE_NODE_TYPE_CASTS(Text, IsTextNode()); |
89 | 89 |
90 } // namespace blink | 90 } // namespace blink |
91 | 91 |
92 #endif // Text_h | 92 #endif // Text_h |
OLD | NEW |