Searched refs:gradient_width (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/ui/gfx/ |
D | render_text.cc | 89 const double gradient_width = std::min(average_character_width * 2.5, in CalculateFadeGradientWidth() local 91 DCHECK_GE(gradient_width, 0.0); in CalculateFadeGradientWidth() 92 return static_cast<int>(floor(gradient_width + 0.5)); in CalculateFadeGradientWidth() 1025 int gradient_width = CalculateFadeGradientWidth(GetPrimaryFont(), in ApplyFadeEffects() local 1027 if (gradient_width == 0) in ApplyFadeEffects() 1044 left_part.Inset(0, 0, solid_part.width() - gradient_width, 0); in ApplyFadeEffects() 1045 solid_part.Inset(gradient_width, 0, 0, 0); in ApplyFadeEffects() 1049 right_part.Inset(solid_part.width() - gradient_width, 0, 0, 0); in ApplyFadeEffects() 1050 solid_part.Inset(0, 0, gradient_width, 0); in ApplyFadeEffects()
|
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/ |
D | bookmark_drag_drop_cocoa.mm | 57 CGFloat gradient_width = std::min(size.height * 2, NSWidth(frame) / 4); 59 NSDivideRect(frame, &gradient_part, &solid_part, gradient_width, NSMaxXEdge); 75 [mask drawFromPoint:NSMakePoint(NSMaxX(frame) - gradient_width,
|