| 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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 SelectionNone, // The object is not selected. | 908 SelectionNone, // The object is not selected. |
| 909 SelectionStart, // The object either contains the start of a selection r
un or is the start of a run | 909 SelectionStart, // The object either contains the start of a selection r
un or is the start of a run |
| 910 SelectionInside, // The object is fully encompassed by a selection run | 910 SelectionInside, // The object is fully encompassed by a selection run |
| 911 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run | 911 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run |
| 912 SelectionBoth // The object contains an entire run or is the sole select
ed object in that run | 912 SelectionBoth // The object contains an entire run or is the sole select
ed object in that run |
| 913 }; | 913 }; |
| 914 | 914 |
| 915 // The current selection state for an object. For blocks, the state refers
to the state of the leaf | 915 // The current selection state for an object. For blocks, the state refers
to the state of the leaf |
| 916 // descendants (as described above in the SelectionState enum declaration). | 916 // descendants (as described above in the SelectionState enum declaration). |
| 917 SelectionState selectionState() const { return m_bitfields.selectionState();
} | 917 SelectionState selectionState() const { return m_bitfields.selectionState();
} |
| 918 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect
ionState(state); } | 918 virtual void setSelectionState(SelectionState); |
| 919 inline void setSelectionStateIfNeeded(SelectionState); | 919 inline void setSelectionStateIfNeeded(SelectionState); |
| 920 bool canUpdateSelectionOnRootLineBoxes() const; | 920 bool canUpdateSelectionOnRootLineBoxes() const; |
| 921 | 921 |
| 922 // A single rectangle that encompasses all of the selected objects within th
is object. Used to determine the tightest | 922 // A single rectangle that encompasses all of the selected objects within th
is object. Used to determine the tightest |
| 923 // possible bounding box for the selection. The rect returned is in the coor
dinate space of the paint invalidation container's backing. | 923 // possible bounding box for the selection. The rect returned is in the coor
dinate space of the paint invalidation container's backing. |
| 924 virtual LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObj
ect* /*paintInvalidationContainer*/) const { return LayoutRect(); } | 924 virtual LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObj
ect* /*paintInvalidationContainer*/) const { return LayoutRect(); } |
| 925 | 925 |
| 926 // View coordinates means the coordinate space of |view()|. | 926 // View coordinates means the coordinate space of |view()|. |
| 927 LayoutRect selectionRectInViewCoordinates() const; | 927 LayoutRect selectionRectInViewCoordinates() const; |
| 928 | 928 |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 void showTree(const blink::LayoutObject*); | 1653 void showTree(const blink::LayoutObject*); |
| 1654 void showLineTree(const blink::LayoutObject*); | 1654 void showLineTree(const blink::LayoutObject*); |
| 1655 void showLayoutTree(const blink::LayoutObject* object1); | 1655 void showLayoutTree(const blink::LayoutObject* object1); |
| 1656 // We don't make object2 an optional parameter so that showLayoutTree | 1656 // We don't make object2 an optional parameter so that showLayoutTree |
| 1657 // can be called from gdb easily. | 1657 // can be called from gdb easily. |
| 1658 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1658 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 1659 | 1659 |
| 1660 #endif | 1660 #endif |
| 1661 | 1661 |
| 1662 #endif // LayoutObject_h | 1662 #endif // LayoutObject_h |
| OLD | NEW |