| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 virtual bool isRenderBlockFlow() const { return false; } | 325 virtual bool isRenderBlockFlow() const { return false; } |
| 326 virtual bool isRenderParagraph() const { return false; } | 326 virtual bool isRenderParagraph() const { return false; } |
| 327 virtual bool isRenderImage() const { return false; } | 327 virtual bool isRenderImage() const { return false; } |
| 328 virtual bool isRenderInline() const { return false; } | 328 virtual bool isRenderInline() const { return false; } |
| 329 virtual bool isRenderView() const { return false; } | 329 virtual bool isRenderView() const { return false; } |
| 330 | 330 |
| 331 bool isDocumentElement() const { return document().documentElement() == m_no
de; } | 331 bool isDocumentElement() const { return document().documentElement() == m_no
de; } |
| 332 | 332 |
| 333 bool everHadLayout() const { return m_bitfields.everHadLayout(); } | 333 bool everHadLayout() const { return m_bitfields.everHadLayout(); } |
| 334 | 334 |
| 335 // FIXME(sky): Remove this concept. | |
| 336 bool childrenInline() const { return isRenderParagraph(); } | |
| 337 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); } | |
| 338 | |
| 339 bool alwaysCreateLineBoxesForRenderInline() const | 335 bool alwaysCreateLineBoxesForRenderInline() const |
| 340 { | 336 { |
| 341 ASSERT(isRenderInline()); | 337 ASSERT(isRenderInline()); |
| 342 return m_bitfields.alwaysCreateLineBoxesForRenderInline(); | 338 return m_bitfields.alwaysCreateLineBoxesForRenderInline(); |
| 343 } | 339 } |
| 344 void setAlwaysCreateLineBoxesForRenderInline(bool alwaysCreateLineBoxes) | 340 void setAlwaysCreateLineBoxesForRenderInline(bool alwaysCreateLineBoxes) |
| 345 { | 341 { |
| 346 ASSERT(isRenderInline()); | 342 ASSERT(isRenderInline()); |
| 347 m_bitfields.setAlwaysCreateLineBoxesForRenderInline(alwaysCreateLineBoxe
s); | 343 m_bitfields.setAlwaysCreateLineBoxesForRenderInline(alwaysCreateLineBoxe
s); |
| 348 } | 344 } |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 , m_isBox(false) | 978 , m_isBox(false) |
| 983 , m_isInline(true) | 979 , m_isInline(true) |
| 984 , m_isReplaced(false) | 980 , m_isReplaced(false) |
| 985 , m_isDragging(false) | 981 , m_isDragging(false) |
| 986 , m_hasLayer(false) | 982 , m_hasLayer(false) |
| 987 , m_hasOverflowClip(false) | 983 , m_hasOverflowClip(false) |
| 988 , m_hasTransform(false) | 984 , m_hasTransform(false) |
| 989 , m_everHadLayout(false) | 985 , m_everHadLayout(false) |
| 990 , m_ancestorLineBoxDirty(false) | 986 , m_ancestorLineBoxDirty(false) |
| 991 , m_layoutDidGetCalled(false) | 987 , m_layoutDidGetCalled(false) |
| 992 , m_childrenInline(false) | |
| 993 , m_alwaysCreateLineBoxesForRenderInline(false) | 988 , m_alwaysCreateLineBoxesForRenderInline(false) |
| 994 , m_positionedState(IsStaticallyPositioned) | 989 , m_positionedState(IsStaticallyPositioned) |
| 995 , m_selectionState(SelectionNone) | 990 , m_selectionState(SelectionNone) |
| 996 , m_boxDecorationBackgroundState(NoBoxDecorationBackground) | 991 , m_boxDecorationBackgroundState(NoBoxDecorationBackground) |
| 997 { | 992 { |
| 998 } | 993 } |
| 999 | 994 |
| 1000 // 32 bits have been used in the first word, and 11 in the second. | 995 // 32 bits have been used in the first word, and 11 in the second. |
| 1001 ADD_BOOLEAN_BITFIELD(selfNeedsLayout, SelfNeedsLayout); | 996 ADD_BOOLEAN_BITFIELD(selfNeedsLayout, SelfNeedsLayout); |
| 1002 ADD_BOOLEAN_BITFIELD(shouldDoFullPaintInvalidation, ShouldDoFullPaintInv
alidation); | 997 ADD_BOOLEAN_BITFIELD(shouldDoFullPaintInvalidation, ShouldDoFullPaintInv
alidation); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1022 | 1017 |
| 1023 ADD_BOOLEAN_BITFIELD(hasLayer, HasLayer); | 1018 ADD_BOOLEAN_BITFIELD(hasLayer, HasLayer); |
| 1024 ADD_BOOLEAN_BITFIELD(hasOverflowClip, HasOverflowClip); // Set in the ca
se of overflow:auto/scroll/hidden | 1019 ADD_BOOLEAN_BITFIELD(hasOverflowClip, HasOverflowClip); // Set in the ca
se of overflow:auto/scroll/hidden |
| 1025 ADD_BOOLEAN_BITFIELD(hasTransform, HasTransform); | 1020 ADD_BOOLEAN_BITFIELD(hasTransform, HasTransform); |
| 1026 | 1021 |
| 1027 ADD_BOOLEAN_BITFIELD(everHadLayout, EverHadLayout); | 1022 ADD_BOOLEAN_BITFIELD(everHadLayout, EverHadLayout); |
| 1028 ADD_BOOLEAN_BITFIELD(ancestorLineBoxDirty, AncestorLineBoxDirty); | 1023 ADD_BOOLEAN_BITFIELD(ancestorLineBoxDirty, AncestorLineBoxDirty); |
| 1029 | 1024 |
| 1030 ADD_BOOLEAN_BITFIELD(layoutDidGetCalled, LayoutDidGetCalled); | 1025 ADD_BOOLEAN_BITFIELD(layoutDidGetCalled, LayoutDidGetCalled); |
| 1031 | 1026 |
| 1032 // from RenderBlock | |
| 1033 ADD_BOOLEAN_BITFIELD(childrenInline, ChildrenInline); | |
| 1034 | |
| 1035 // from RenderInline | 1027 // from RenderInline |
| 1036 ADD_BOOLEAN_BITFIELD(alwaysCreateLineBoxesForRenderInline, AlwaysCreateL
ineBoxesForRenderInline); | 1028 ADD_BOOLEAN_BITFIELD(alwaysCreateLineBoxesForRenderInline, AlwaysCreateL
ineBoxesForRenderInline); |
| 1037 | 1029 |
| 1038 private: | 1030 private: |
| 1039 unsigned m_positionedState : 2; // PositionedState | 1031 unsigned m_positionedState : 2; // PositionedState |
| 1040 unsigned m_selectionState : 3; // SelectionState | 1032 unsigned m_selectionState : 3; // SelectionState |
| 1041 unsigned m_boxDecorationBackgroundState : 2; // BoxDecorationBackgroundS
tate | 1033 unsigned m_boxDecorationBackgroundState : 2; // BoxDecorationBackgroundS
tate |
| 1042 | 1034 |
| 1043 public: | 1035 public: |
| 1044 bool isOutOfFlowPositioned() const { return m_positionedState == IsOutOf
FlowPositioned; } | 1036 bool isOutOfFlowPositioned() const { return m_positionedState == IsOutOf
FlowPositioned; } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1206 void showTree(const blink::RenderObject*); | 1198 void showTree(const blink::RenderObject*); |
| 1207 void showLineTree(const blink::RenderObject*); | 1199 void showLineTree(const blink::RenderObject*); |
| 1208 void showRenderTree(const blink::RenderObject* object1); | 1200 void showRenderTree(const blink::RenderObject* object1); |
| 1209 // We don't make object2 an optional parameter so that showRenderTree | 1201 // We don't make object2 an optional parameter so that showRenderTree |
| 1210 // can be called from gdb easily. | 1202 // can be called from gdb easily. |
| 1211 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1203 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1212 | 1204 |
| 1213 #endif | 1205 #endif |
| 1214 | 1206 |
| 1215 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ | 1207 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ |
| OLD | NEW |