OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 // That call should be broken apart to position the layers be done befor
e | 1056 // That call should be broken apart to position the layers be done befor
e |
1057 // the repaintTree call so this will repaint everything. | 1057 // the repaintTree call so this will repaint everything. |
1058 bool didFullRepaint = false; | 1058 bool didFullRepaint = false; |
1059 if (!renderer->layoutDidGetCalled()) { | 1059 if (!renderer->layoutDidGetCalled()) { |
1060 if (renderer->shouldDoFullRepaintAfterLayout()) { | 1060 if (renderer->shouldDoFullRepaintAfterLayout()) { |
1061 renderer->repaint(); | 1061 renderer->repaint(); |
1062 didFullRepaint = true; | 1062 didFullRepaint = true; |
1063 } | 1063 } |
1064 | 1064 |
1065 } else { | 1065 } else { |
1066 LayoutRect oldOutlineRect; | |
1067 LayoutRect newOutlineRect; | |
1068 | |
1069 if (renderer->hasOutline()) { | |
1070 newOutlineRect = renderer->newOutlineRect(); | |
1071 oldOutlineRect = renderer->oldOutlineRect(); | |
1072 } | |
1073 | |
1074 didFullRepaint = renderer->repaintAfterLayoutIfNeeded(renderer->cont
ainerForRepaint(), | 1066 didFullRepaint = renderer->repaintAfterLayoutIfNeeded(renderer->cont
ainerForRepaint(), |
1075 renderer->shouldDoFullRepaintAfterLayout(), oldRepaintRect, oldO
utlineRect, | 1067 renderer->shouldDoFullRepaintAfterLayout(), oldRepaintRect, &new
RepaintRect); |
1076 &newRepaintRect, &newOutlineRect); | |
1077 } | 1068 } |
1078 | 1069 |
1079 if (!didFullRepaint) | 1070 if (!didFullRepaint) |
1080 renderer->repaintOverflowIfNeeded(); | 1071 renderer->repaintOverflowIfNeeded(); |
1081 | 1072 |
1082 // Repaint any scrollbars if there is a scrollable area for this rendere
r. | 1073 // Repaint any scrollbars if there is a scrollable area for this rendere
r. |
1083 if (renderer->enclosingLayer()) { | 1074 if (renderer->enclosingLayer()) { |
1084 if (RenderLayerScrollableArea* area = renderer->enclosingLayer()->sc
rollableArea()) { | 1075 if (RenderLayerScrollableArea* area = renderer->enclosingLayer()->sc
rollableArea()) { |
1085 if (area->hasVerticalBarDamage()) | 1076 if (area->hasVerticalBarDamage()) |
1086 renderer->repaintRectangle(area->verticalBarDamage()); | 1077 renderer->repaintRectangle(area->verticalBarDamage()); |
(...skipping 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3219 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3210 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
3220 { | 3211 { |
3221 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3212 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3222 if (AXObjectCache* cache = axObjectCache()) { | 3213 if (AXObjectCache* cache = axObjectCache()) { |
3223 cache->remove(scrollbar); | 3214 cache->remove(scrollbar); |
3224 cache->handleScrollbarUpdate(this); | 3215 cache->handleScrollbarUpdate(this); |
3225 } | 3216 } |
3226 } | 3217 } |
3227 | 3218 |
3228 } // namespace WebCore | 3219 } // namespace WebCore |
OLD | NEW |