OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 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 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 friend class LayoutBlock; | 128 friend class LayoutBlock; |
129 friend class LayoutBlockFlow; | 129 friend class LayoutBlockFlow; |
130 friend class DeprecatedPaintLayerReflectionInfo; // For setParent | 130 friend class DeprecatedPaintLayerReflectionInfo; // For setParent |
131 friend class DeprecatedPaintLayerScrollableArea; // For setParent. | 131 friend class DeprecatedPaintLayerScrollableArea; // For setParent. |
132 friend class LayoutObjectChildList; | 132 friend class LayoutObjectChildList; |
133 WTF_MAKE_NONCOPYABLE(LayoutObject); | 133 WTF_MAKE_NONCOPYABLE(LayoutObject); |
134 public: | 134 public: |
135 // Anonymous objects should pass the document as their node, and they will t
hen automatically be | 135 // Anonymous objects should pass the document as their node, and they will t
hen automatically be |
136 // marked as anonymous in the constructor. | 136 // marked as anonymous in the constructor. |
137 explicit LayoutObject(Node*); | 137 explicit LayoutObject(Node*); |
138 virtual ~LayoutObject(); | 138 ~LayoutObject() override; |
139 | 139 |
140 // Returns the name of the layout object. | 140 // Returns the name of the layout object. |
141 virtual const char* name() const = 0; | 141 virtual const char* name() const = 0; |
142 | 142 |
143 // Returns the decorated name used by run-layout-tests. The name contains th
e name of the object | 143 // Returns the decorated name used by run-layout-tests. The name contains th
e name of the object |
144 // along with extra information about the layout object state (e.g. position
ing). | 144 // along with extra information about the layout object state (e.g. position
ing). |
145 String decoratedName() const; | 145 String decoratedName() const; |
146 | 146 |
147 // Returns the decorated name along with the debug information from the asso
ciated Node object. | 147 // Returns the decorated name along with the debug information from the asso
ciated Node object. |
148 String debugName() const; | 148 String debugName() const; |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 | 962 |
963 virtual bool isCombineText() const { return false; } | 963 virtual bool isCombineText() const { return false; } |
964 | 964 |
965 virtual int caretMinOffset() const; | 965 virtual int caretMinOffset() const; |
966 virtual int caretMaxOffset() const; | 966 virtual int caretMaxOffset() const; |
967 | 967 |
968 virtual int previousOffset(int current) const; | 968 virtual int previousOffset(int current) const; |
969 virtual int previousOffsetForBackwardDeletion(int current) const; | 969 virtual int previousOffsetForBackwardDeletion(int current) const; |
970 virtual int nextOffset(int current) const; | 970 virtual int nextOffset(int current) const; |
971 | 971 |
972 virtual void imageChanged(ImageResource*, const IntRect* = nullptr) override
final; | 972 void imageChanged(ImageResource*, const IntRect* = nullptr) final; |
973 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { } | 973 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { } |
974 virtual bool willRenderImage(ImageResource*) override final; | 974 bool willRenderImage(ImageResource*) final; |
975 virtual bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&)
override final; | 975 bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) final; |
976 | 976 |
977 void selectionStartEnd(int& spos, int& epos) const; | 977 void selectionStartEnd(int& spos, int& epos) const; |
978 | 978 |
979 void remove() | 979 void remove() |
980 { | 980 { |
981 if (parent()) | 981 if (parent()) |
982 parent()->removeChild(this); | 982 parent()->removeChild(this); |
983 } | 983 } |
984 | 984 |
985 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } | 985 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 void showTree(const blink::LayoutObject*); | 1657 void showTree(const blink::LayoutObject*); |
1658 void showLineTree(const blink::LayoutObject*); | 1658 void showLineTree(const blink::LayoutObject*); |
1659 void showLayoutTree(const blink::LayoutObject* object1); | 1659 void showLayoutTree(const blink::LayoutObject* object1); |
1660 // We don't make object2 an optional parameter so that showLayoutTree | 1660 // We don't make object2 an optional parameter so that showLayoutTree |
1661 // can be called from gdb easily. | 1661 // can be called from gdb easily. |
1662 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1662 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1663 | 1663 |
1664 #endif | 1664 #endif |
1665 | 1665 |
1666 #endif // LayoutObject_h | 1666 #endif // LayoutObject_h |
OLD | NEW |