Home
last modified time | relevance | path

Searched refs:labelSize (Results 1 – 2 of 2) sorted by relevance

/external/webkit/WebKit/win/WebCoreSupport/
DWebDragClient.cpp250 IntSize labelSize(labelFont->width(labelRun), labelFont->ascent() + labelFont->descent()); in createDragImageForLink() local
252 if (labelSize.width() > MAX_DRAG_LABEL_STRING_WIDTH){ in createDragImageForLink()
253 labelSize.setWidth(MAX_DRAG_LABEL_STRING_WIDTH); in createDragImageForLink()
258 IntSize imageSize(labelSize.width() + DRAG_LABEL_BORDER_X * 2, in createDragImageForLink()
259 labelSize.height() + DRAG_LABEL_BORDER_Y * 2); in createDragImageForLink()
269 … imageSize.setWidth(std::max(labelSize.width(), urlStringSize.width()) + DRAG_LABEL_BORDER_X * 2); in createDragImageForLink()
/external/webkit/WebKit/mac/WebView/
DWebHTMLView.mm1659 NSSize labelSize;
1660 labelSize.width = [label _web_widthWithFont: labelFont];
1661 labelSize.height = [labelFont ascender] - [labelFont descender];
1662 if (labelSize.width > MAX_DRAG_LABEL_WIDTH){
1663 labelSize.width = MAX_DRAG_LABEL_WIDTH;
1668 imageSize.width = labelSize.width + DRAG_LABEL_BORDER_X * 2.0f;
1669 imageSize.height = labelSize.height + DRAG_LABEL_BORDER_Y * 2.0f;
1678 …imageSize.width = max(labelSize.width + DRAG_LABEL_BORDER_X * 2, urlStringSize.width + DRAG_LABEL_…