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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 | 1130 |
1131 virtual bool canBeSelectionLeaf() const { return false; } | 1131 virtual bool canBeSelectionLeaf() const { return false; } |
1132 bool hasSelectedChildren() const { return selectionState() != SelectionNone;
} | 1132 bool hasSelectedChildren() const { return selectionState() != SelectionNone;
} |
1133 | 1133 |
1134 bool isSelectable() const; | 1134 bool isSelectable() const; |
1135 // Obtains the selection colors that should be used when painting a selectio
n. | 1135 // Obtains the selection colors that should be used when painting a selectio
n. |
1136 Color selectionBackgroundColor() const; | 1136 Color selectionBackgroundColor() const; |
1137 Color selectionForegroundColor(const GlobalPaintFlags) const; | 1137 Color selectionForegroundColor(const GlobalPaintFlags) const; |
1138 Color selectionEmphasisMarkColor(const GlobalPaintFlags) const; | 1138 Color selectionEmphasisMarkColor(const GlobalPaintFlags) const; |
1139 | 1139 |
1140 // Whether or not a given block needs to paint selection gaps. | |
1141 virtual bool shouldPaintSelectionGaps() const { return false; } | |
1142 | |
1143 /** | 1140 /** |
1144 * Returns the local coordinates of the caret within this layout object. | 1141 * Returns the local coordinates of the caret within this layout object. |
1145 * @param caretOffset zero-based offset determining position within the layo
ut object. | 1142 * @param caretOffset zero-based offset determining position within the layo
ut object. |
1146 * @param extraWidthToEndOfLine optional out arg to give extra width to end
of line - | 1143 * @param extraWidthToEndOfLine optional out arg to give extra width to end
of line - |
1147 * useful for character range rect computations | 1144 * useful for character range rect computations |
1148 */ | 1145 */ |
1149 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = nullptr); | 1146 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = nullptr); |
1150 | 1147 |
1151 // When performing a global document tear-down, the layoutObject of the docu
ment is cleared. We use this | 1148 // When performing a global document tear-down, the layoutObject of the docu
ment is cleared. We use this |
1152 // as a hook to detect the case of document destruction and don't waste time
doing unnecessary work. | 1149 // as a hook to detect the case of document destruction and don't waste time
doing unnecessary work. |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2108 void showTree(const blink::LayoutObject*); | 2105 void showTree(const blink::LayoutObject*); |
2109 void showLineTree(const blink::LayoutObject*); | 2106 void showLineTree(const blink::LayoutObject*); |
2110 void showLayoutTree(const blink::LayoutObject* object1); | 2107 void showLayoutTree(const blink::LayoutObject* object1); |
2111 // We don't make object2 an optional parameter so that showLayoutTree | 2108 // We don't make object2 an optional parameter so that showLayoutTree |
2112 // can be called from gdb easily. | 2109 // can be called from gdb easily. |
2113 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2110 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2114 | 2111 |
2115 #endif | 2112 #endif |
2116 | 2113 |
2117 #endif // LayoutObject_h | 2114 #endif // LayoutObject_h |
OLD | NEW |