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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 | 841 |
842 virtual unsigned int length() const { return 1; } | 842 virtual unsigned int length() const { return 1; } |
843 | 843 |
844 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut
OfFlowPositioned()); } | 844 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut
OfFlowPositioned()); } |
845 | 845 |
846 bool isTransparent() const { return style()->opacity() < 1.0f; } | 846 bool isTransparent() const { return style()->opacity() < 1.0f; } |
847 float opacity() const { return style()->opacity(); } | 847 float opacity() const { return style()->opacity(); } |
848 | 848 |
849 bool hasReflection() const { return m_bitfields.hasReflection(); } | 849 bool hasReflection() const { return m_bitfields.hasReflection(); } |
850 | 850 |
851 // Applied as a "slop" to dirty rect checks during the outline painting phas
e's dirty-rect checks. | |
852 int maximalOutlineSize(PaintPhase) const; | |
853 | |
854 enum SelectionState { | 851 enum SelectionState { |
855 SelectionNone, // The object is not selected. | 852 SelectionNone, // The object is not selected. |
856 SelectionStart, // The object either contains the start of a selection r
un or is the start of a run | 853 SelectionStart, // The object either contains the start of a selection r
un or is the start of a run |
857 SelectionInside, // The object is fully encompassed by a selection run | 854 SelectionInside, // The object is fully encompassed by a selection run |
858 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run | 855 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run |
859 SelectionBoth // The object contains an entire run or is the sole select
ed object in that run | 856 SelectionBoth // The object contains an entire run or is the sole select
ed object in that run |
860 }; | 857 }; |
861 | 858 |
862 // The current selection state for an object. For blocks, the state refers
to the state of the leaf | 859 // The current selection state for an object. For blocks, the state refers
to the state of the leaf |
863 // descendants (as described above in the SelectionState enum declaration). | 860 // descendants (as described above in the SelectionState enum declaration). |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 void showTree(const WebCore::RenderObject*); | 1414 void showTree(const WebCore::RenderObject*); |
1418 void showLineTree(const WebCore::RenderObject*); | 1415 void showLineTree(const WebCore::RenderObject*); |
1419 void showRenderTree(const WebCore::RenderObject* object1); | 1416 void showRenderTree(const WebCore::RenderObject* object1); |
1420 // We don't make object2 an optional parameter so that showRenderTree | 1417 // We don't make object2 an optional parameter so that showRenderTree |
1421 // can be called from gdb easily. | 1418 // can be called from gdb easily. |
1422 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1419 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1423 | 1420 |
1424 #endif | 1421 #endif |
1425 | 1422 |
1426 #endif // RenderObject_h | 1423 #endif // RenderObject_h |
OLD | NEW |