| 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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 | 917 |
| 918 // The current selection state for an object. For blocks, the state refers
to the state of the leaf | 918 // The current selection state for an object. For blocks, the state refers
to the state of the leaf |
| 919 // descendants (as described above in the SelectionState enum declaration). | 919 // descendants (as described above in the SelectionState enum declaration). |
| 920 SelectionState selectionState() const { return m_bitfields.selectionState();
} | 920 SelectionState selectionState() const { return m_bitfields.selectionState();
} |
| 921 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect
ionState(state); } | 921 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect
ionState(state); } |
| 922 inline void setSelectionStateIfNeeded(SelectionState); | 922 inline void setSelectionStateIfNeeded(SelectionState); |
| 923 bool canUpdateSelectionOnRootLineBoxes(); | 923 bool canUpdateSelectionOnRootLineBoxes(); |
| 924 | 924 |
| 925 // A single rectangle that encompasses all of the selected objects within th
is object. Used to determine the tightest | 925 // A single rectangle that encompasses all of the selected objects within th
is object. Used to determine the tightest |
| 926 // possible bounding box for the selection. The rect returned is in the coor
dinate space of the paint invalidation container's backing. | 926 // possible bounding box for the selection. The rect returned is in the coor
dinate space of the paint invalidation container's backing. |
| 927 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* /*paintInvalidationContainer*/, bool /*clipToVisibleContent*/ = true) con
st { return LayoutRect(); } | 927 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* /*paintInvalidationContainer*/) const { return LayoutRect(); } |
| 928 | 928 |
| 929 virtual bool canBeSelectionLeaf() const { return false; } | 929 virtual bool canBeSelectionLeaf() const { return false; } |
| 930 bool hasSelectedChildren() const { return selectionState() != SelectionNone;
} | 930 bool hasSelectedChildren() const { return selectionState() != SelectionNone;
} |
| 931 | 931 |
| 932 bool isSelectable() const; | 932 bool isSelectable() const; |
| 933 // Obtains the selection colors that should be used when painting a selectio
n. | 933 // Obtains the selection colors that should be used when painting a selectio
n. |
| 934 Color selectionBackgroundColor() const; | 934 Color selectionBackgroundColor() const; |
| 935 Color selectionForegroundColor() const; | 935 Color selectionForegroundColor() const; |
| 936 Color selectionEmphasisMarkColor() const; | 936 Color selectionEmphasisMarkColor() const; |
| 937 | 937 |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 void showTree(const blink::RenderObject*); | 1574 void showTree(const blink::RenderObject*); |
| 1575 void showLineTree(const blink::RenderObject*); | 1575 void showLineTree(const blink::RenderObject*); |
| 1576 void showRenderTree(const blink::RenderObject* object1); | 1576 void showRenderTree(const blink::RenderObject* object1); |
| 1577 // We don't make object2 an optional parameter so that showRenderTree | 1577 // We don't make object2 an optional parameter so that showRenderTree |
| 1578 // can be called from gdb easily. | 1578 // can be called from gdb easily. |
| 1579 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1579 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1580 | 1580 |
| 1581 #endif | 1581 #endif |
| 1582 | 1582 |
| 1583 #endif // RenderObject_h | 1583 #endif // RenderObject_h |
| OLD | NEW |