/external/webkit/WebCore/platform/chromium/ |
D | ScrollbarThemeChromiumWin.cpp | 60 IntRect ScrollbarThemeChromium::trackRect(Scrollbar* scrollbar, bool) in trackRect() argument 62 IntSize bs = buttonSize(scrollbar); in trackRect() 65 int thickness = scrollbarThickness(scrollbar->controlSize()); in trackRect() 66 if (scrollbar->orientation() == HorizontalScrollbar) { in trackRect() 69 if (scrollbar->width() < 2 * thickness) in trackRect() 71 …return IntRect(scrollbar->x() + bs.width(), scrollbar->y(), scrollbar->width() - 2 * bs.width(), t… in trackRect() 73 if (scrollbar->height() < 2 * thickness) in trackRect() 75 …return IntRect(scrollbar->x(), scrollbar->y() + bs.height(), thickness, scrollbar->height() - 2 * … in trackRect() 94 bool ScrollbarThemeChromiumWin::shouldSnapBackToDragOrigin(Scrollbar* scrollbar, const PlatformMous… in shouldSnapBackToDragOrigin() argument 98 IntRect rect = trackRect(scrollbar); in shouldSnapBackToDragOrigin() [all …]
|
D | ScrollbarThemeChromiumMac.mm | 43 // Because we want to draw tickmarks in the scrollbar, we must maintain a fork. 136 void ScrollbarThemeChromiumMac::registerScrollbar(Scrollbar* scrollbar) 140 gScrollbars->add(scrollbar); 143 void ScrollbarThemeChromiumMac::unregisterScrollbar(Scrollbar* scrollbar) 145 gScrollbars->remove(scrollbar); 196 bool ScrollbarThemeChromiumMac::hasButtons(Scrollbar* scrollbar) 198 return scrollbar->enabled() && (scrollbar->orientation() == HorizontalScrollbar ? 199 scrollbar->width() : 200 …scrollbar->height()) >= 2 * (cRealButtonLength[scrollbar->controlSize()] - cButtonHitInset[scrollb… 203 bool ScrollbarThemeChromiumMac::hasThumb(Scrollbar* scrollbar) [all …]
|
D | ScrollbarThemeChromium.cpp | 43 bool ScrollbarThemeChromium::hasThumb(Scrollbar* scrollbar) in hasThumb() argument 47 return thumbLength(scrollbar) > 0; in hasThumb() 50 IntRect ScrollbarThemeChromium::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in backButtonRect() argument 56 IntSize size = buttonSize(scrollbar); in backButtonRect() 57 return IntRect(scrollbar->x(), scrollbar->y(), size.width(), size.height()); in backButtonRect() 60 IntRect ScrollbarThemeChromium::forwardButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in forwardButtonRect() argument 66 IntSize size = buttonSize(scrollbar); in forwardButtonRect() 68 if (scrollbar->orientation() == HorizontalScrollbar) { in forwardButtonRect() 69 x = scrollbar->x() + scrollbar->width() - size.width(); in forwardButtonRect() 70 y = scrollbar->y(); in forwardButtonRect() [all …]
|
D | ScrollbarThemeChromiumLinux.cpp | 132 IntRect ScrollbarThemeChromium::trackRect(Scrollbar* scrollbar, bool) in trackRect() argument 134 IntSize bs = buttonSize(scrollbar); in trackRect() 135 int thickness = scrollbarThickness(scrollbar->controlSize()); in trackRect() 136 if (scrollbar->orientation() == HorizontalScrollbar) in trackRect() 137 return IntRect(scrollbar->x() + bs.width(), scrollbar->y(), scrollbar->width(), thickness); in trackRect() 138 return IntRect(scrollbar->x(), scrollbar->y() + bs.height(), thickness, scrollbar->height()); in trackRect() 141 void ScrollbarThemeChromiumLinux::paintTrackPiece(GraphicsContext* gc, Scrollbar* scrollbar, const … in paintTrackPiece() argument 161 void ScrollbarThemeChromiumLinux::paintButton(GraphicsContext* gc, Scrollbar* scrollbar, const IntR… in paintButton() argument 166 void ScrollbarThemeChromiumLinux::paintThumb(GraphicsContext* gc, Scrollbar* scrollbar, const IntRe… in paintThumb() argument 168 const bool hovered = scrollbar->hoveredPart() == ThumbPart; in paintThumb() [all …]
|
D | FramelessScrollView.cpp | 45 void FramelessScrollView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) in invalidateScrollbarRect() argument 49 dirtyRect.move(scrollbar->x(), scrollbar->y()); in invalidateScrollbarRect()
|
/external/webkit/WebCore/platform/ |
D | ScrollbarThemeComposite.cpp | 56 bool ScrollbarThemeComposite::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const I… in paint() argument 65 if (hasButtons(scrollbar)) { in paint() 66 backButtonStartPaintRect = backButtonRect(scrollbar, BackButtonStartPart, true); in paint() 69 backButtonEndPaintRect = backButtonRect(scrollbar, BackButtonEndPart, true); in paint() 72 forwardButtonStartPaintRect = forwardButtonRect(scrollbar, ForwardButtonStartPart, true); in paint() 75 forwardButtonEndPaintRect = forwardButtonRect(scrollbar, ForwardButtonEndPart, true); in paint() 83 IntRect trackPaintRect = trackRect(scrollbar, true); in paint() 86 bool thumbPresent = hasThumb(scrollbar); in paint() 88 IntRect track = trackRect(scrollbar); in paint() 89 splitTrack(scrollbar, track, startTrackRect, thumbRect, endTrackRect); in paint() [all …]
|
D | ScrollbarClient.h | 51 …virtual IntRect convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& sc… in convertFromScrollbarToContainingView() argument 53 return scrollbar->Widget::convertToContainingView(scrollbarRect); in convertFromScrollbarToContainingView() 56 …virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& pa… in convertFromContainingViewToScrollbar() argument 58 return scrollbar->Widget::convertFromContainingView(parentRect); in convertFromContainingViewToScrollbar() 61 …virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& … in convertFromScrollbarToContainingView() argument 63 return scrollbar->Widget::convertToContainingView(scrollbarPoint); in convertFromScrollbarToContainingView() 66 …virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& … in convertFromContainingViewToScrollbar() argument 68 return scrollbar->Widget::convertFromContainingView(parentPoint); in convertFromContainingViewToScrollbar()
|
D | ScrollbarTheme.h | 56 void invalidateParts(Scrollbar* scrollbar, ScrollbarControlPartMask mask) in invalidateParts() argument 59 invalidatePart(scrollbar, BackButtonStartPart); in invalidateParts() 61 invalidatePart(scrollbar, ForwardButtonStartPart); in invalidateParts() 63 invalidatePart(scrollbar, BackTrackPart); in invalidateParts() 65 invalidatePart(scrollbar, ThumbPart); in invalidateParts() 67 invalidatePart(scrollbar, ForwardTrackPart); in invalidateParts() 69 invalidatePart(scrollbar, BackButtonEndPart); in invalidateParts() 71 invalidatePart(scrollbar, ForwardButtonEndPart); in invalidateParts()
|
D | ScrollView.cpp | 249 void ScrollView::valueChanged(Scrollbar* scrollbar) in valueChanged() argument 253 if (scrollbar) { in valueChanged() 254 if (scrollbar->orientation() == HorizontalScrollbar) in valueChanged() 255 newOffset.setWidth(scrollbar->value()); in valueChanged() 256 else if (scrollbar->orientation() == VerticalScrollbar) in valueChanged() 257 newOffset.setHeight(scrollbar->value()); in valueChanged() 847 IntRect ScrollView::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect&… in wheelEvent() argument 851 newRect.move(scrollbar->x(), scrollbar->y()); in wheelEvent() 855 IntRect ScrollView::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect&… in wheelEvent() argument 859 newRect.move(-scrollbar->x(), -scrollbar->y()); in wheelEvent() [all …]
|
D | Scrollbar.cpp | 188 static bool thumbUnderMouse(Scrollbar* scrollbar) in thumbUnderMouse() argument 190 …int thumbPos = scrollbar->theme()->trackPosition(scrollbar) + scrollbar->theme()->thumbPosition(sc… in thumbUnderMouse() 191 int thumbLength = scrollbar->theme()->thumbLength(scrollbar); in thumbUnderMouse() 192 return scrollbar->pressedPos() >= thumbPos && scrollbar->pressedPos() < thumbPos + thumbLength; in thumbUnderMouse()
|
/external/webkit/WebCore/platform/win/ |
D | ScrollbarThemeSafari.cpp | 107 bool ScrollbarThemeSafari::hasButtons(Scrollbar* scrollbar) in hasButtons() argument 109 return scrollbar->enabled() && (scrollbar->orientation() == HorizontalScrollbar ? in hasButtons() 110 scrollbar->width() : in hasButtons() 111 …scrollbar->height()) >= 2 * (cRealButtonLength[scrollbar->controlSize()] - cButtonHitInset[scrollb… in hasButtons() 114 bool ScrollbarThemeSafari::hasThumb(Scrollbar* scrollbar) in hasThumb() argument 116 return scrollbar->enabled() && (scrollbar->orientation() == HorizontalScrollbar ? in hasThumb() 117 scrollbar->width() : in hasThumb() 118 …scrollbar->height()) >= 2 * cButtonInset[scrollbar->controlSize()] + cThumbMinLength[scrollbar->co… in hasThumb() 137 IntRect ScrollbarThemeSafari::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool paintin… in backButtonRect() argument 145 int thickness = scrollbarThickness(scrollbar->controlSize()); in backButtonRect() [all …]
|
D | ScrollbarThemeWin.cpp | 132 bool ScrollbarThemeWin::hasThumb(Scrollbar* scrollbar) in hasThumb() argument 134 return thumbLength(scrollbar) > 0; in hasThumb() 137 IntRect ScrollbarThemeWin::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in backButtonRect() argument 149 if (scrollbar->orientation() == HorizontalScrollbar) in backButtonRect() 150 return IntRect(scrollbar->x(), scrollbar->y(), in backButtonRect() 151 … scrollbar->width() < 2 * thickness ? scrollbar->width() / 2 : thickness, thickness); in backButtonRect() 152 return IntRect(scrollbar->x(), scrollbar->y(), in backButtonRect() 153 … thickness, scrollbar->height() < 2 * thickness ? scrollbar->height() / 2 : thickness); in backButtonRect() 156 IntRect ScrollbarThemeWin::forwardButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in forwardButtonRect() argument 168 if (scrollbar->orientation() == HorizontalScrollbar) { in forwardButtonRect() [all …]
|
D | PopupMenuWin.cpp | 699 void PopupMenu::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) in invalidateScrollbarRect() argument 702 scrollRect.move(scrollbar->x(), scrollbar->y()); in invalidateScrollbarRect() 780 if (!scrollbar()) in wndProc() 784 …scrollbar()->setFrameRect(IntRect(size.width() - scrollbar()->width(), 0, scrollbar()->width(), si… in wndProc() 787 scrollbar()->setEnabled(visibleItems < client()->listSize()); in wndProc() 788 scrollbar()->setSteps(1, max(1, visibleItems - 1)); in wndProc() 789 scrollbar()->setProportion(visibleItems, client()->listSize()); in wndProc() 880 if (scrollbar()) { in wndProc() 881 IntRect scrollBarRect = scrollbar()->frameRect(); in wndProc() 886 scrollbar()->mouseMoved(event); in wndProc() [all …]
|
/external/webkit/WebCore/platform/wx/ |
D | ScrollbarThemeWx.cpp | 67 bool ScrollbarThemeWx::hasThumb(Scrollbar* scrollbar) in hasThumb() argument 71 return thumbLength(scrollbar) > 0; in hasThumb() 74 int ScrollbarThemeWx::minimumThumbLength(Scrollbar* scrollbar) in minimumThumbLength() argument 88 void ScrollbarThemeWx::splitTrack(Scrollbar* scrollbar, const IntRect& unconstrainedTrackRect, IntR… in splitTrack() argument 90 …ScrollbarThemeComposite::splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, thumbRect,… in splitTrack() 95 if (scrollbar->orientation() == HorizontalScrollbar) { in splitTrack() 105 IntRect ScrollbarThemeWx::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in backButtonRect() argument 112 IntSize size = buttonSize(scrollbar); in backButtonRect() 113 int x = scrollbar->x(); in backButtonRect() 114 int y = scrollbar->y(); in backButtonRect() [all …]
|
/external/webkit/WebCore/rendering/ |
D | RenderScrollbarTheme.cpp | 39 void RenderScrollbarTheme::buttonSizesAlongTrackAxis(Scrollbar* scrollbar, int& beforeSize, int& af… in buttonSizesAlongTrackAxis() argument 41 IntRect firstButton = backButtonRect(scrollbar, BackButtonStartPart); in buttonSizesAlongTrackAxis() 42 IntRect secondButton = forwardButtonRect(scrollbar, ForwardButtonStartPart); in buttonSizesAlongTrackAxis() 43 IntRect thirdButton = backButtonRect(scrollbar, BackButtonEndPart); in buttonSizesAlongTrackAxis() 44 IntRect fourthButton = forwardButtonRect(scrollbar, ForwardButtonEndPart); in buttonSizesAlongTrackAxis() 45 if (scrollbar->orientation() == HorizontalScrollbar) { in buttonSizesAlongTrackAxis() 54 bool RenderScrollbarTheme::hasButtons(Scrollbar* scrollbar) in hasButtons() argument 58 buttonSizesAlongTrackAxis(scrollbar, startSize, endSize); in hasButtons() 59 …return (startSize + endSize) <= (scrollbar->orientation() == HorizontalScrollbar ? scrollbar->widt… in hasButtons() 62 bool RenderScrollbarTheme::hasThumb(Scrollbar* scrollbar) in hasThumb() argument [all …]
|
D | RenderScrollbarTheme.h | 49 …rOnThumb(Scrollbar* scrollbar, const PlatformMouseEvent& event) { return ScrollbarTheme::nativeThe… in shouldCenterOnThumb() argument 54 …al void registerScrollbar(Scrollbar* scrollbar) { return ScrollbarTheme::nativeTheme()->registerSc… in registerScrollbar() argument 55 …void unregisterScrollbar(Scrollbar* scrollbar) { return ScrollbarTheme::nativeTheme()->unregisterS… in unregisterScrollbar() argument 59 void buttonSizesAlongTrackAxis(Scrollbar* scrollbar, int& beforeSize, int& afterSize);
|
D | RenderDataGrid.cpp | 190 IntRect RenderDataGrid::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntR… in convertFromScrollbarToContainingView() argument 198 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromScrollbarToContainingView() 205 IntRect RenderDataGrid::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntR… in convertFromContainingViewToScrollbar() argument 213 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromContainingViewToScrollbar() 219 IntPoint RenderDataGrid::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const Int… in convertFromScrollbarToContainingView() argument 227 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromScrollbarToContainingView() 234 IntPoint RenderDataGrid::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const Int… in convertFromContainingViewToScrollbar() argument 242 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromContainingViewToScrollbar()
|
D | RenderScrollbar.h | 83 inline RenderScrollbar* toRenderScrollbar(Scrollbar* scrollbar) in toRenderScrollbar() argument 85 ASSERT(!scrollbar || scrollbar->isCustomScrollbar()); in toRenderScrollbar() 86 return static_cast<RenderScrollbar*>(scrollbar); in toRenderScrollbar()
|
D | RenderListBox.cpp | 620 void RenderListBox::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) in invalidateScrollbarRect() argument 623 scrollRect.move(width() - borderRight() - scrollbar->width(), borderTop()); in invalidateScrollbarRect() 627 IntRect RenderListBox::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRe… in convertFromScrollbarToContainingView() argument 635 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromScrollbarToContainingView() 642 IntRect RenderListBox::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRe… in convertFromContainingViewToScrollbar() argument 650 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromContainingViewToScrollbar() 656 IntPoint RenderListBox::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntP… in convertFromScrollbarToContainingView() argument 664 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromScrollbarToContainingView() 671 IntPoint RenderListBox::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntP… in convertFromContainingViewToScrollbar() argument 679 int scrollbarLeft = width() - borderRight() - scrollbar->width(); in convertFromContainingViewToScrollbar()
|
/external/webkit/WebCore/platform/mac/ |
D | ScrollbarThemeMac.mm | 123 void ScrollbarThemeMac::registerScrollbar(Scrollbar* scrollbar) 127 gScrollbars->add(scrollbar); 130 void ScrollbarThemeMac::unregisterScrollbar(Scrollbar* scrollbar) 132 gScrollbars->remove(scrollbar); 183 bool ScrollbarThemeMac::hasButtons(Scrollbar* scrollbar) 185 return scrollbar->enabled() && (scrollbar->orientation() == HorizontalScrollbar ? 186 scrollbar->width() : 187 …scrollbar->height()) >= 2 * (cRealButtonLength[scrollbar->controlSize()] - cButtonHitInset[scrollb… 190 bool ScrollbarThemeMac::hasThumb(Scrollbar* scrollbar) 192 return scrollbar->enabled() && (scrollbar->orientation() == HorizontalScrollbar ? [all …]
|
/external/webkit/WebCore/platform/haiku/ |
D | ScrollbarThemeHaiku.cpp | 63 bool ScrollbarThemeHaiku::hasButtons(Scrollbar* scrollbar) in hasButtons() argument 65 return scrollbar->enabled(); in hasButtons() 68 bool ScrollbarThemeHaiku::hasThumb(Scrollbar* scrollbar) in hasThumb() argument 70 return scrollbar->enabled() && thumbLength(scrollbar) > 0; in hasThumb() 73 IntRect ScrollbarThemeHaiku::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in backButtonRect() argument 79 IntPoint buttonOrigin(scrollbar->x(), scrollbar->y()); in backButtonRect() 80 IntSize buttonSize = scrollbar->orientation() == HorizontalScrollbar in backButtonRect() 81 ? IntSize(buttonWidth(scrollbar->width(), thickness), thickness) in backButtonRect() 82 : IntSize(thickness, buttonWidth(scrollbar->height(), thickness)); in backButtonRect() 88 IntRect ScrollbarThemeHaiku::forwardButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) in forwardButtonRect() argument [all …]
|
/external/webkit/WebCore/platform/qt/ |
D | ScrollbarThemeQt.cpp | 97 static QStyleOptionSlider* styleOptionSlider(Scrollbar* scrollbar, QWidget* widget = 0) in styleOptionSlider() argument 107 opt.rect = scrollbar->frameRect(); in styleOptionSlider() 108 if (scrollbar->enabled()) in styleOptionSlider() 110 if (scrollbar->controlSize() != RegularScrollbar) in styleOptionSlider() 112 … opt.orientation = (scrollbar->orientation() == VerticalScrollbar) ? Qt::Vertical : Qt::Horizontal; in styleOptionSlider() 113 if (scrollbar->orientation() == HorizontalScrollbar) in styleOptionSlider() 115 opt.sliderValue = scrollbar->value(); in styleOptionSlider() 117 opt.pageStep = scrollbar->visibleSize(); in styleOptionSlider() 118 opt.singleStep = scrollbar->lineStep(); in styleOptionSlider() 120 opt.maximum = qMax(0, scrollbar->maximum()); in styleOptionSlider() [all …]
|
/external/webkit/WebCore/page/ |
D | EventHandler.cpp | 986 Cursor EventHandler::selectCursor(const MouseEventWithHitTestResults& event, Scrollbar* scrollbar) in selectCursor() argument 1064 …able || (renderer && renderer->isText() && node->canStartSelection())) && !inResizer && !scrollbar) in selectCursor() 1235 if (mev.scrollbar()) { in handleMousePressEvent() 1236 const bool wasLastScrollBar = mev.scrollbar() == m_lastScrollbarUnderMouse.get(); in handleMousePressEvent() 1239 if (wasLastScrollBar && mev.scrollbar() != m_lastScrollbarUnderMouse.get()) in handleMousePressEvent() 1245 Scrollbar* scrollbar = mev.scrollbar(); in handleMousePressEvent() local 1247 updateLastScrollbarUnderMouse(scrollbar, true); in handleMousePressEvent() 1249 if (scrollbar) in handleMousePressEvent() 1250 passMousePressEventToScrollbar(mev, scrollbar); in handleMousePressEvent() 1262 Scrollbar* scrollbar = view ? view->scrollbarAtPoint(mouseEvent.pos()) : 0; in handleMousePressEvent() local [all …]
|
/external/webkit/WebKitTools/iExploder/htdocs/ |
D | cssproperties.in | 271 scrollbar-3dlight-color 272 scrollbar-arrow-color 273 scrollbar-darkshadow-color 274 scrollbar-face-color 275 scrollbar-highlight-color 276 scrollbar-shadow-color 277 scrollbar-track-color 291 scrollbar-base-color
|
/external/webkit/WebCore/platform/gtk/ |
D | gtk2drawing.c | 1089 GtkWidget *scrollbar; in moz_gtk_scrollbar_button_paint() local 1098 scrollbar = gParts->vertScrollbarWidget; in moz_gtk_scrollbar_button_paint() 1100 scrollbar = gParts->horizScrollbarWidget; in moz_gtk_scrollbar_button_paint() 1102 gtk_widget_set_direction(scrollbar, direction); in moz_gtk_scrollbar_button_paint() 1108 scrollbar->allocation.x = rect->x; in moz_gtk_scrollbar_button_paint() 1109 scrollbar->allocation.y = rect->y; in moz_gtk_scrollbar_button_paint() 1110 scrollbar->allocation.width = rect->width; in moz_gtk_scrollbar_button_paint() 1111 scrollbar->allocation.height = rect->height; in moz_gtk_scrollbar_button_paint() 1114 scrollbar->allocation.height *= 5; in moz_gtk_scrollbar_button_paint() 1118 scrollbar->allocation.y -= 4 * rect->height; in moz_gtk_scrollbar_button_paint() [all …]
|