/external/webkit/WebCore/platform/haiku/ |
D | ScrollbarThemeHaiku.cpp | 36 int buttonWidth(int scrollbarWidth, int thickness) in buttonWidth() argument 38 return scrollbarWidth < 2 * thickness ? scrollbarWidth / 2 : thickness; in buttonWidth() 78 int thickness = scrollbarThickness(); in backButtonRect() local 81 ? IntSize(buttonWidth(scrollbar->width(), thickness), thickness) in backButtonRect() 82 : IntSize(thickness, buttonWidth(scrollbar->height(), thickness)); in backButtonRect() 93 int thickness = scrollbarThickness(); in forwardButtonRect() local 95 int width = buttonWidth(scrollbar->width(), thickness); in forwardButtonRect() 96 … return IntRect(scrollbar->x() + scrollbar->width() - width, scrollbar->y(), width, thickness); in forwardButtonRect() 99 int height = buttonWidth(scrollbar->height(), thickness); in forwardButtonRect() 100 … return IntRect(scrollbar->x(), scrollbar->y() + scrollbar->height() - height, thickness, height); in forwardButtonRect() [all …]
|
/external/webkit/WebCore/platform/win/ |
D | ScrollbarThemeWin.cpp | 112 static int thickness; in scrollbarThickness() local 113 if (!thickness) in scrollbarThickness() 114 thickness = ::GetSystemMetrics(SM_CXVSCROLL); in scrollbarThickness() 115 return thickness; in scrollbarThickness() 148 int thickness = scrollbarThickness(); in backButtonRect() local 151 … scrollbar->width() < 2 * thickness ? scrollbar->width() / 2 : thickness, thickness); in backButtonRect() 153 … thickness, scrollbar->height() < 2 * thickness ? scrollbar->height() / 2 : thickness); in backButtonRect() 167 int thickness = scrollbarThickness(); in forwardButtonRect() local 169 int w = scrollbar->width() < 2 * thickness ? scrollbar->width() / 2 : thickness; in forwardButtonRect() 170 return IntRect(scrollbar->x() + scrollbar->width() - w, scrollbar->y(), w, thickness); in forwardButtonRect() [all …]
|
D | ScrollbarThemeSafari.cpp | 145 int thickness = scrollbarThickness(scrollbar->controlSize()); in backButtonRect() local 147 …sult = IntRect(scrollbar->x(), scrollbar->y(), cButtonLength[scrollbar->controlSize()], thickness); in backButtonRect() 149 …result = IntRect(scrollbar->x(), scrollbar->y(), thickness, cButtonLength[scrollbar->controlSize()… in backButtonRect() 163 int thickness = scrollbarThickness(scrollbar->controlSize()); in forwardButtonRect() local 165 …gth[scrollbar->controlSize()], scrollbar->y(), cButtonLength[scrollbar->controlSize()], thickness); in forwardButtonRect() 167 …r->y() + scrollbar->height() - cButtonLength[scrollbar->controlSize()], thickness, cButtonLength[s… in forwardButtonRect() 190 int thickness = scrollbarThickness(scrollbar->controlSize()); in trackRect() local 192 …e()], scrollbar->y(), scrollbar->width() - 2 * cButtonLength[scrollbar->controlSize()], thickness); in trackRect() 193 …rollbar->x(), scrollbar->y() + cButtonLength[scrollbar->controlSize()], thickness, scrollbar->heig… in trackRect()
|
/external/webkit/WebCore/platform/chromium/ |
D | ScrollbarThemeChromiumWin.cpp | 65 int thickness = scrollbarThickness(scrollbar->controlSize()); in trackRect() local 69 if (scrollbar->width() < 2 * thickness) in trackRect() 71 …tRect(scrollbar->x() + bs.width(), scrollbar->y(), scrollbar->width() - 2 * bs.width(), thickness); 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() 80 static int thickness; in scrollbarThickness() local 81 if (!thickness) { in scrollbarThickness() 84 thickness = GetSystemMetrics(SM_CXVSCROLL); in scrollbarThickness() 86 return thickness; in scrollbarThickness() 100 const int thickness = scrollbarThickness(scrollbar->controlSize()); in shouldSnapBackToDragOrigin() local [all …]
|
D | ScrollbarThemeChromiumMac.mm | 236 int thickness = scrollbarThickness(scrollbar->controlSize()); 240 …y(), cOuterButtonLength[scrollbar->controlSize()] + painting ? cOuterButtonOverlap : 0, thickness); 242 …result = IntRect(scrollbar->x(), scrollbar->y(), thickness, cOuterButtonLength[scrollbar->controlS… 249 result = IntRect(start, scrollbar->y(), cButtonLength[scrollbar->controlSize()], thickness); 252 result = IntRect(scrollbar->x(), start, thickness, cButtonLength[scrollbar->controlSize()]); 270 int thickness = scrollbarThickness(scrollbar->controlSize()); 277 …llbar->x() + scrollbar->width() - outerButtonLength, scrollbar->y(), outerButtonLength, thickness); 281 …rollbar->x(), scrollbar->y() + scrollbar->height() - outerButtonLength, thickness, outerButtonLeng… 290 result = IntRect(start, scrollbar->y(), buttonLength, thickness); 293 result = IntRect(scrollbar->x(), start, thickness, buttonLength); [all …]
|
D | ScrollbarThemeChromiumLinux.cpp | 135 int thickness = scrollbarThickness(scrollbar->controlSize()); in trackRect() local 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()
|
/external/webkit/WebCore/platform/wx/ |
D | ScrollbarThemeWx.cpp | 58 int thickness = wxSystemSettings::GetMetric(wxSYS_VSCROLL_X); in scrollbarThickness() local 61 if (thickness <= 0) in scrollbarThickness() 62 thickness = 20; in scrollbarThickness() 64 return thickness; in scrollbarThickness() 164 int thickness = scrollbarThickness(scrollbar->controlSize()); in trackRect() local 166 if (scrollbar->width() < 2 * thickness) in trackRect() 168 …tRect(scrollbar->x() + trackStart, scrollbar->y(), scrollbar->width() - 2 * bs.width(), thickness); in trackRect() 170 if (scrollbar->height() < 2 * thickness) in trackRect() 172 …return IntRect(scrollbar->x(), scrollbar->y() + trackStart, thickness, scrollbar->height() - 2 * b… in trackRect()
|
/external/webkit/WebCore/platform/mac/ |
D | ScrollbarThemeMac.mm | 223 int thickness = scrollbarThickness(scrollbar->controlSize()); 227 …y(), cOuterButtonLength[scrollbar->controlSize()] + painting ? cOuterButtonOverlap : 0, thickness); 229 …result = IntRect(scrollbar->x(), scrollbar->y(), thickness, cOuterButtonLength[scrollbar->controlS… 236 result = IntRect(start, scrollbar->y(), cButtonLength[scrollbar->controlSize()], thickness); 239 result = IntRect(scrollbar->x(), start, thickness, cButtonLength[scrollbar->controlSize()]); 257 int thickness = scrollbarThickness(scrollbar->controlSize()); 264 …llbar->x() + scrollbar->width() - outerButtonLength, scrollbar->y(), outerButtonLength, thickness); 268 …rollbar->x(), scrollbar->y() + scrollbar->height() - outerButtonLength, thickness, outerButtonLeng… 277 result = IntRect(start, scrollbar->y(), buttonLength, thickness); 280 result = IntRect(scrollbar->x(), start, thickness, buttonLength); [all …]
|
/external/webkit/WebCore/platform/wx/wxcode/win/ |
D | scrollbar_render.cpp | 199 int thickness = ::GetSystemMetrics(SM_CXVSCROLL) / 2; in wxRenderer_DrawScrollbar() local 201 buttonRect.left += ((buttonRect.right - buttonRect.left) - thickness) / 2; in wxRenderer_DrawScrollbar() 202 buttonRect.top += ((buttonRect.bottom - buttonRect.top) - thickness) / 2; in wxRenderer_DrawScrollbar() 203 buttonRect.right = buttonRect.left + thickness; in wxRenderer_DrawScrollbar() 204 buttonRect.bottom = buttonRect.top + thickness; in wxRenderer_DrawScrollbar()
|
/external/webkit/WebCore/platform/ |
D | ScrollbarThemeComposite.cpp | 244 …int thickness = scrollbar->orientation() == HorizontalScrollbar ? scrollbar->height() : scrollbar-… in splitTrack() local 247 …) + thumbPos, trackRect.y() + (trackRect.height() - thickness) / 2, thumbLength(scrollbar), thickn… in splitTrack() 251 …ect = IntRect(trackRect.x() + (trackRect.width() - thickness) / 2, trackRect.y() + thumbPos, thick… in splitTrack()
|
D | Scrollbar.cpp | 87 int thickness = m_theme->scrollbarThickness(controlSize); in Scrollbar() local 88 Widget::setFrameRect(IntRect(0, 0, thickness, thickness)); in Scrollbar()
|
/external/webkit/WebCore/platform/graphics/cg/ |
D | GraphicsContextCG.cpp | 715 void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness) in addInnerRoundedRectClip() argument 726 CGContextAddEllipseInRect(context, CGRectMake(rect.x() + thickness, rect.y() + thickness, in addInnerRoundedRectClip() 727 rect.width() - (thickness * 2), rect.height() - (thickness * 2))); in addInnerRoundedRectClip() 1046 float thickness = max(strokeThickness(), 0.5f); in drawLineForText() local 1052 float adjustedThickness = max(thickness, 1.0f); in drawLineForText() 1059 if (lineRect.size.height < thickness * 2.0) { in drawLineForText() 1063 thickness = lineRect.size.height; in drawLineForText() 1073 CGContextFillRect(platformContext(), CGRectMake(x, y, lineLength, thickness)); in drawLineForText() 1206 void GraphicsContext::setPlatformStrokeThickness(float thickness) in setPlatformStrokeThickness() argument 1210 CGContextSetLineWidth(platformContext(), thickness); in setPlatformStrokeThickness()
|
/external/webkit/WebCore/rendering/ |
D | SVGInlineTextBox.cpp | 530 …float thickness = SVGRenderStyle::cssPrimitiveToLength(object, object->style()->svgStyle()->stroke… in pathForDecoration() local 533 thickness = max(thickness * powf(font.size(), 2.0f) / font.unitsPerEm(), 1.0f); in pathForDecoration() 536 y += thickness * 1.5f; // For compatibility with Batik/Opera in pathForDecoration() 538 y += thickness; in pathForDecoration() 540 float halfThickness = thickness / 2.0f; in pathForDecoration() 541 …rn Path::createRectangle(FloatRect(x + halfThickness, y, width - 2.0f * halfThickness, thickness)); in pathForDecoration()
|
D | RenderBoxModelObject.cpp | 969 float thickness; in paintBorder() local 1000 thickness = style->borderTopWidth() * 2; in paintBorder() 1018 …drawArcForBoxSide(graphicsContext, leftX, leftY, thickness, topLeft, firstAngleStart, firstAngleSp… in paintBorder() 1044 …drawArcForBoxSide(graphicsContext, rightX, leftY, thickness, topRight, secondAngleStart, secondAng… in paintBorder() 1072 thickness = style->borderBottomWidth() * 2; in paintBorder() 1095 …drawArcForBoxSide(graphicsContext, leftX, leftY, thickness, bottomLeft, firstAngleStart, firstAngl… in paintBorder() 1117 …drawArcForBoxSide(graphicsContext, rightX, rightY, thickness, bottomRight, secondAngleStart, secon… in paintBorder() 1146 thickness = style->borderLeftWidth() * 2; in paintBorder() 1163 …drawArcForBoxSide(graphicsContext, topX, topY, thickness, topLeft, firstAngleStart, firstAngleSpan, in paintBorder() 1184 …drawArcForBoxSide(graphicsContext, topX, bottomY, thickness, bottomLeft, secondAngleStart, secondA… in paintBorder() [all …]
|
D | RenderObject.cpp | 911 …:drawArcForBoxSide(GraphicsContext* graphicsContext, int x, int y, float thickness, IntSize radius, in drawArcForBoxSide() argument 915 …if ((style == DOUBLE && thickness / 2 < 3) || ((style == RIDGE || style == GROOVE) && thickness / … in drawArcForBoxSide() 933 graphicsContext->setStrokeThickness(thickness); in drawArcForBoxSide() 937 float third = thickness / 3.0f; in drawArcForBoxSide() 938 float innerThird = (thickness + 1.0f) / 6.0f; in drawArcForBoxSide() 973 graphicsContext->setStrokeThickness(thickness); in drawArcForBoxSide() 976 float halfThickness = (thickness + 1.0f) / 4.0f; in drawArcForBoxSide() 993 graphicsContext->setStrokeThickness(thickness); in drawArcForBoxSide()
|
/external/webkit/WebCore/svg/ |
D | svgattrs.in | 149 overline-thickness 194 strikethrough-thickness 221 underline-thickness
|
/external/webkit/WebCore/platform/graphics/skia/ |
D | GraphicsContextSkia.cpp | 286 void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness) in addInnerRoundedRectClip() argument 298 if (2 * thickness < rect.width() && 2 * thickness < rect.height()) { in addInnerRoundedRectClip() 302 r.inset(SkIntToScalar(thickness + 1), SkIntToScalar(thickness + 1)); in addInnerRoundedRectClip() 678 int thickness = SkMax32(static_cast<int>(strokeThickness()), 1); in drawLineForText() local 683 r.fBottom = r.fTop + SkIntToScalar(thickness); in drawLineForText() 1045 void GraphicsContext::setPlatformStrokeThickness(float thickness) in setPlatformStrokeThickness() argument 1050 platformContext()->setStrokeThickness(thickness); in setPlatformStrokeThickness()
|
D | PlatformContextSkia.h | 124 void setStrokeThickness(float thickness);
|
/external/webkit/WebCore/platform/graphics/openvg/ |
D | GraphicsContextOpenVG.cpp | 486 void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness) in addInnerRoundedRectClip() argument 493 UNUSED_PARAM(thickness); in addInnerRoundedRectClip() 529 void GraphicsContext::setPlatformStrokeThickness(float thickness) in setPlatformStrokeThickness() argument 534 m_data->setStrokeThickness(thickness); in setPlatformStrokeThickness()
|
D | PainterOpenVG.cpp | 483 void PainterOpenVG::setStrokeThickness(float thickness) in setStrokeThickness() argument 488 m_state->strokeThickness = thickness; in setStrokeThickness() 489 vgSetf(VG_STROKE_LINE_WIDTH, thickness); in setStrokeThickness()
|
/external/webkit/WebCore/platform/graphics/haiku/ |
D | GraphicsContextHaiku.cpp | 446 void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness) in addInnerRoundedRectClip() argument 518 void GraphicsContext::setPlatformStrokeThickness(float thickness) in setPlatformStrokeThickness() argument 523 m_data->m_view->SetPenSize(thickness); in setPlatformStrokeThickness()
|
/external/webkit/WebCore/platform/graphics/qt/ |
D | GraphicsContextQt.cpp | 1062 int thickness) in addInnerRoundedRectClip() argument 1074 path.addEllipse(QRectF(rect.x() + thickness, rect.y() + thickness, in addInnerRoundedRectClip() 1075 rect.width() - (thickness * 2), rect.height() - (thickness * 2))); in addInnerRoundedRectClip() 1129 void GraphicsContext::setPlatformStrokeThickness(float thickness) in setPlatformStrokeThickness() argument 1135 newPen.setWidthF(thickness); in setPlatformStrokeThickness()
|
/external/webkit/WebCore/platform/graphics/android/ |
D | GraphicsContextAndroid.cpp | 740 void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness) in addInnerRoundedRectClip() argument 752 if (2*thickness < rect.width() && 2*thickness < rect.height()) in addInnerRoundedRectClip() 754 r.inset(SkIntToScalar(thickness) ,SkIntToScalar(thickness)); in addInnerRoundedRectClip()
|
/external/webkit/WebCore/platform/graphics/wx/ |
D | GraphicsContextWx.cpp | 455 void GraphicsContext::setPlatformStrokeThickness(float thickness) in setPlatformStrokeThickness() argument 461 … m_data->context->SetPen(wxPen(strokeColor(), thickness, strokeStyleToWxPenStyle(strokeStyle()))); in setPlatformStrokeThickness() 569 void GraphicsContext::addInnerRoundedRectClip(const IntRect& rect, int thickness) in addInnerRoundedRectClip() argument
|
/external/webkit/WebCore/platform/graphics/ |
D | GraphicsContext.cpp | 111 void GraphicsContext::setStrokeThickness(float thickness) in setStrokeThickness() argument 113 m_common->state.strokeThickness = thickness; in setStrokeThickness() 114 setPlatformStrokeThickness(thickness); in setStrokeThickness()
|