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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 SelectionInside, // The object is fully encompassed by a selection run | 892 SelectionInside, // The object is fully encompassed by a selection run |
893 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run | 893 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run |
894 SelectionBoth // The object contains an entire run or is the sole select
ed object in that run | 894 SelectionBoth // The object contains an entire run or is the sole select
ed object in that run |
895 }; | 895 }; |
896 | 896 |
897 // The current selection state for an object. For blocks, the state refers
to the state of the leaf | 897 // The current selection state for an object. For blocks, the state refers
to the state of the leaf |
898 // descendants (as described above in the SelectionState enum declaration). | 898 // descendants (as described above in the SelectionState enum declaration). |
899 SelectionState selectionState() const { return m_bitfields.selectionState();
} | 899 SelectionState selectionState() const { return m_bitfields.selectionState();
} |
900 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect
ionState(state); } | 900 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect
ionState(state); } |
901 inline void setSelectionStateIfNeeded(SelectionState); | 901 inline void setSelectionStateIfNeeded(SelectionState); |
902 bool canUpdateSelectionOnRootLineBoxes(); | 902 bool canUpdateSelectionOnRootLineBoxes() const; |
903 | 903 |
904 // A single rectangle that encompasses all of the selected objects within th
is object. Used to determine the tightest | 904 // A single rectangle that encompasses all of the selected objects within th
is object. Used to determine the tightest |
905 // possible bounding box for the selection. The rect returned is in the coor
dinate space of the paint invalidation container's backing. | 905 // possible bounding box for the selection. The rect returned is in the coor
dinate space of the paint invalidation container's backing. |
906 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* /*paintInvalidationContainer*/) const { return LayoutRect(); } | 906 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* /*paintInvalidationContainer*/) const { return LayoutRect(); } |
907 | 907 |
908 virtual bool canBeSelectionLeaf() const { return false; } | 908 virtual bool canBeSelectionLeaf() const { return false; } |
909 bool hasSelectedChildren() const { return selectionState() != SelectionNone;
} | 909 bool hasSelectedChildren() const { return selectionState() != SelectionNone;
} |
910 | 910 |
911 bool isSelectable() const; | 911 bool isSelectable() const; |
912 // Obtains the selection colors that should be used when painting a selectio
n. | 912 // Obtains the selection colors that should be used when painting a selectio
n. |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 void showTree(const blink::RenderObject*); | 1613 void showTree(const blink::RenderObject*); |
1614 void showLineTree(const blink::RenderObject*); | 1614 void showLineTree(const blink::RenderObject*); |
1615 void showRenderTree(const blink::RenderObject* object1); | 1615 void showRenderTree(const blink::RenderObject* object1); |
1616 // We don't make object2 an optional parameter so that showRenderTree | 1616 // We don't make object2 an optional parameter so that showRenderTree |
1617 // can be called from gdb easily. | 1617 // can be called from gdb easily. |
1618 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1618 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
1619 | 1619 |
1620 #endif | 1620 #endif |
1621 | 1621 |
1622 #endif // RenderObject_h | 1622 #endif // RenderObject_h |
OLD | NEW |