| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 , m_updateWidgetsTimer(this, &FrameView::updateWidgetsTimerFired) | 115 , m_updateWidgetsTimer(this, &FrameView::updateWidgetsTimerFired) |
| 116 , m_isTransparent(false) | 116 , m_isTransparent(false) |
| 117 , m_baseBackgroundColor(Color::white) | 117 , m_baseBackgroundColor(Color::white) |
| 118 , m_mediaType("screen") | 118 , m_mediaType("screen") |
| 119 , m_overflowStatusDirty(true) | 119 , m_overflowStatusDirty(true) |
| 120 , m_viewportRenderer(0) | 120 , m_viewportRenderer(0) |
| 121 , m_wasScrolledByUser(false) | 121 , m_wasScrolledByUser(false) |
| 122 , m_inProgrammaticScroll(false) | 122 , m_inProgrammaticScroll(false) |
| 123 , m_safeToPropagateScrollToParent(true) | 123 , m_safeToPropagateScrollToParent(true) |
| 124 , m_isTrackingPaintInvalidations(false) | 124 , m_isTrackingPaintInvalidations(false) |
| 125 , m_scrollCorner(0) | 125 , m_scrollCorner(nullptr) |
| 126 , m_shouldAutoSize(false) | 126 , m_shouldAutoSize(false) |
| 127 , m_inAutoSize(false) | 127 , m_inAutoSize(false) |
| 128 , m_didRunAutosize(false) | 128 , m_didRunAutosize(false) |
| 129 , m_hasSoftwareFilters(false) | 129 , m_hasSoftwareFilters(false) |
| 130 , m_visibleContentScaleFactor(1) | 130 , m_visibleContentScaleFactor(1) |
| 131 , m_inputEventsScaleFactorForEmulation(1) | 131 , m_inputEventsScaleFactorForEmulation(1) |
| 132 , m_layoutSizeFixedToFrameSize(true) | 132 , m_layoutSizeFixedToFrameSize(true) |
| 133 , m_didScrollTimer(this, &FrameView::didScrollTimerFired) | 133 , m_didScrollTimer(this, &FrameView::didScrollTimerFired) |
| 134 { | 134 { |
| 135 ASSERT(m_frame); | 135 ASSERT(m_frame); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 Scrollbar* horizontalBar = horizontalScrollbar(); | 280 Scrollbar* horizontalBar = horizontalScrollbar(); |
| 281 if (horizontalBar && horizontalBar->isCustomScrollbar()) | 281 if (horizontalBar && horizontalBar->isCustomScrollbar()) |
| 282 setHasHorizontalScrollbar(false); | 282 setHasHorizontalScrollbar(false); |
| 283 | 283 |
| 284 Scrollbar* verticalBar = verticalScrollbar(); | 284 Scrollbar* verticalBar = verticalScrollbar(); |
| 285 if (verticalBar && verticalBar->isCustomScrollbar()) | 285 if (verticalBar && verticalBar->isCustomScrollbar()) |
| 286 setHasVerticalScrollbar(false); | 286 setHasVerticalScrollbar(false); |
| 287 | 287 |
| 288 if (m_scrollCorner) { | 288 if (m_scrollCorner) { |
| 289 m_scrollCorner->destroy(); | 289 m_scrollCorner->destroy(); |
| 290 m_scrollCorner = 0; | 290 m_scrollCorner = nullptr; |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 | 293 |
| 294 void FrameView::recalculateScrollbarOverlayStyle() | 294 void FrameView::recalculateScrollbarOverlayStyle() |
| 295 { | 295 { |
| 296 ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle(); | 296 ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle(); |
| 297 ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault; | 297 ScrollbarOverlayStyle overlayStyle = ScrollbarOverlayStyleDefault; |
| 298 | 298 |
| 299 Color backgroundColor = documentBackgroundColor(); | 299 Color backgroundColor = documentBackgroundColor(); |
| 300 // Reduce the background color from RGB to a lightness value | 300 // Reduce the background color from RGB to a lightness value |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 m_widgets.add(object); | 1070 m_widgets.add(object); |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 void FrameView::removeWidget(RenderWidget* object) | 1073 void FrameView::removeWidget(RenderWidget* object) |
| 1074 { | 1074 { |
| 1075 m_widgets.remove(object); | 1075 m_widgets.remove(object); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 void FrameView::updateWidgetPositions() | 1078 void FrameView::updateWidgetPositions() |
| 1079 { | 1079 { |
| 1080 Vector<RefPtr<RenderWidget> > widgets; | 1080 WillBeHeapVector<RefPtrWillBeMember<RenderWidget> > widgets; |
| 1081 copyToVector(m_widgets, widgets); | 1081 copyToVector(m_widgets, widgets); |
| 1082 | 1082 |
| 1083 // Script or plugins could detach the frame so abort processing if that happ
ens. | 1083 // Script or plugins could detach the frame so abort processing if that happ
ens. |
| 1084 | 1084 |
| 1085 for (size_t i = 0; i < widgets.size() && renderView(); ++i) | 1085 for (size_t i = 0; i < widgets.size() && renderView(); ++i) |
| 1086 widgets[i]->updateWidgetPosition(); | 1086 widgets[i]->updateWidgetPosition(); |
| 1087 | 1087 |
| 1088 for (size_t i = 0; i < widgets.size() && renderView(); ++i) | 1088 for (size_t i = 0; i < widgets.size() && renderView(); ++i) |
| 1089 widgets[i]->widgetPositionsUpdated(); | 1089 widgets[i]->widgetPositionsUpdated(); |
| 1090 } | 1090 } |
| (...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2513 } | 2513 } |
| 2514 } | 2514 } |
| 2515 | 2515 |
| 2516 if (cornerStyle) { | 2516 if (cornerStyle) { |
| 2517 if (!m_scrollCorner) | 2517 if (!m_scrollCorner) |
| 2518 m_scrollCorner = RenderScrollbarPart::createAnonymous(doc); | 2518 m_scrollCorner = RenderScrollbarPart::createAnonymous(doc); |
| 2519 m_scrollCorner->setStyle(cornerStyle.release()); | 2519 m_scrollCorner->setStyle(cornerStyle.release()); |
| 2520 invalidateScrollCorner(cornerRect); | 2520 invalidateScrollCorner(cornerRect); |
| 2521 } else if (m_scrollCorner) { | 2521 } else if (m_scrollCorner) { |
| 2522 m_scrollCorner->destroy(); | 2522 m_scrollCorner->destroy(); |
| 2523 m_scrollCorner = 0; | 2523 m_scrollCorner = nullptr; |
| 2524 } | 2524 } |
| 2525 | 2525 |
| 2526 ScrollView::updateScrollCorner(); | 2526 ScrollView::updateScrollCorner(); |
| 2527 } | 2527 } |
| 2528 | 2528 |
| 2529 void FrameView::paintScrollCorner(GraphicsContext* context, const IntRect& corne
rRect) | 2529 void FrameView::paintScrollCorner(GraphicsContext* context, const IntRect& corne
rRect) |
| 2530 { | 2530 { |
| 2531 if (context->updatingControlTints()) { | 2531 if (context->updatingControlTints()) { |
| 2532 updateScrollCorner(); | 2532 updateScrollCorner(); |
| 2533 return; | 2533 return; |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3264 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
| 3265 { | 3265 { |
| 3266 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3266 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
| 3267 if (AXObjectCache* cache = axObjectCache()) { | 3267 if (AXObjectCache* cache = axObjectCache()) { |
| 3268 cache->remove(scrollbar); | 3268 cache->remove(scrollbar); |
| 3269 cache->handleScrollbarUpdate(this); | 3269 cache->handleScrollbarUpdate(this); |
| 3270 } | 3270 } |
| 3271 } | 3271 } |
| 3272 | 3272 |
| 3273 } // namespace blink | 3273 } // namespace blink |
| OLD | NEW |