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