| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 enum MapCoordinatesMode { | 110 enum MapCoordinatesMode { |
| 111 IsFixed = 1 << 0, | 111 IsFixed = 1 << 0, |
| 112 UseTransforms = 1 << 1, | 112 UseTransforms = 1 << 1, |
| 113 ApplyContainerFlip = 1 << 2 | 113 ApplyContainerFlip = 1 << 2 |
| 114 }; | 114 }; |
| 115 typedef unsigned MapCoordinatesFlags; | 115 typedef unsigned MapCoordinatesFlags; |
| 116 | 116 |
| 117 const int caretWidth = 1; | 117 const int caretWidth = 1; |
| 118 | 118 |
| 119 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(DRAGGABLE_REGION) | 119 #if ENABLE(DRAGGABLE_REGION) |
| 120 struct AnnotatedRegionValue { | 120 struct AnnotatedRegionValue { |
| 121 bool operator==(const AnnotatedRegionValue& o) const | 121 bool operator==(const AnnotatedRegionValue& o) const |
| 122 { | 122 { |
| 123 #if ENABLE(DASHBOARD_SUPPORT) | |
| 124 return type == o.type && bounds == o.bounds && clip == o.clip && label =
= o.label; | |
| 125 #else // ENABLE(DRAGGABLE_REGION) | |
| 126 return draggable == o.draggable && bounds == o.bounds; | 123 return draggable == o.draggable && bounds == o.bounds; |
| 127 #endif | |
| 128 } | 124 } |
| 129 bool operator!=(const AnnotatedRegionValue& o) const | 125 bool operator!=(const AnnotatedRegionValue& o) const |
| 130 { | 126 { |
| 131 return !(*this == o); | 127 return !(*this == o); |
| 132 } | 128 } |
| 133 | 129 |
| 134 LayoutRect bounds; | 130 LayoutRect bounds; |
| 135 #if ENABLE(DASHBOARD_SUPPORT) | |
| 136 String label; | |
| 137 LayoutRect clip; | |
| 138 int type; | |
| 139 #else // ENABLE(DRAGGABLE_REGION) | |
| 140 bool draggable; | 131 bool draggable; |
| 141 #endif | |
| 142 }; | 132 }; |
| 143 #endif | 133 #endif |
| 144 | 134 |
| 145 typedef WTF::HashSet<const RenderObject*> RenderObjectAncestorLineboxDirtySet; | 135 typedef WTF::HashSet<const RenderObject*> RenderObjectAncestorLineboxDirtySet; |
| 146 | 136 |
| 147 #ifndef NDEBUG | 137 #ifndef NDEBUG |
| 148 const int showTreeCharacterOffset = 39; | 138 const int showTreeCharacterOffset = 39; |
| 149 #endif | 139 #endif |
| 150 | 140 |
| 151 // Base class for all rendering tree objects. | 141 // Base class for all rendering tree objects. |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 // Recursive function that computes the size and position of this object and
all its descendants. | 705 // Recursive function that computes the size and position of this object and
all its descendants. |
| 716 virtual void layout(); | 706 virtual void layout(); |
| 717 | 707 |
| 718 /* This function performs a layout only if one is needed. */ | 708 /* This function performs a layout only if one is needed. */ |
| 719 void layoutIfNeeded() { if (needsLayout()) layout(); } | 709 void layoutIfNeeded() { if (needsLayout()) layout(); } |
| 720 | 710 |
| 721 // used for element state updates that cannot be fixed with a | 711 // used for element state updates that cannot be fixed with a |
| 722 // repaint and do not need a relayout | 712 // repaint and do not need a relayout |
| 723 virtual void updateFromElement() { } | 713 virtual void updateFromElement() { } |
| 724 | 714 |
| 725 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(DRAGGABLE_REGION) | 715 #if ENABLE(DRAGGABLE_REGION) |
| 726 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); | 716 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); |
| 727 void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&); | 717 void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&); |
| 728 #endif | 718 #endif |
| 729 | 719 |
| 730 bool isComposited() const; | 720 bool isComposited() const; |
| 731 | 721 |
| 732 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); | 722 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); |
| 733 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); | 723 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); |
| 734 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); | 724 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); |
| 735 | 725 |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 // Outside the WebCore namespace for ease of invocation from gdb. | 1360 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1371 void showTree(const WebCore::RenderObject*); | 1361 void showTree(const WebCore::RenderObject*); |
| 1372 void showLineTree(const WebCore::RenderObject*); | 1362 void showLineTree(const WebCore::RenderObject*); |
| 1373 void showRenderTree(const WebCore::RenderObject* object1); | 1363 void showRenderTree(const WebCore::RenderObject* object1); |
| 1374 // We don't make object2 an optional parameter so that showRenderTree | 1364 // We don't make object2 an optional parameter so that showRenderTree |
| 1375 // can be called from gdb easily. | 1365 // can be called from gdb easily. |
| 1376 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1366 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1377 #endif | 1367 #endif |
| 1378 | 1368 |
| 1379 #endif // RenderObject_h | 1369 #endif // RenderObject_h |
| OLD | NEW |