Home
last modified time | relevance | path

Searched refs:maxWidth (Results 1 – 25 of 72) sorted by relevance

123

/external/webkit/Source/WebCore/platform/graphics/
DStringTruncator.cpp101 static String truncateString(const String& string, float maxWidth, const Font& font, TruncationFunc… in truncateString() argument
106 ASSERT(maxWidth >= 0); in truncateString()
125 if (width <= maxWidth) in truncateString()
134 if (currentEllipsisWidth >= maxWidth) { in truncateString()
140 ASSERT(widthForLargestKnownToFit <= maxWidth); in truncateString()
141 ASSERT(widthForSmallestKnownToNotFit > maxWidth); in truncateString()
145 keepCount = static_cast<unsigned>(maxWidth * ratio); in truncateString()
161 if (width <= maxWidth) { in truncateString()
182 String StringTruncator::centerTruncate(const String& string, float maxWidth, const Font& font) in centerTruncate() argument
184 return truncateString(string, maxWidth, font, centerTruncateToBuffer); in centerTruncate()
[all …]
DStringTruncator.h40 static String centerTruncate(const String&, float maxWidth, const Font&);
41 static String rightTruncate(const String&, float maxWidth, const Font&);
/external/chromium/chrome/browser/ui/cocoa/tab_contents/
Dsad_tab_view.mm64 CGFloat maxWidth = NSWidth(newBounds) - (kTabHorzMargin * 2);
69 CGFloat iconX = (maxWidth - NSWidth(iconFrame)) / 2;
81 CGFloat titleX = (maxWidth - NSWidth(titleFrame)) / 2;
91 if (messageSize_.width > maxWidth) { // Need to wrap message.
92 [message_ setFrameSize:NSMakeSize(maxWidth, messageSize_.height)];
95 messageFrame.size.width = maxWidth;
103 messageFrame.origin.x = (maxWidth - NSWidth(messageFrame)) / 2;
114 CGFloat linkX = (maxWidth - NSWidth(linkFrame)) / 2;
/external/webkit/Source/WebKit/mac/Misc/
DWebStringTruncator.h35 + (NSString *)centerTruncateString:(NSString *)string toWidth:(float)maxWidth withFont:(NSFont *)fo…
38 + (NSString *)centerTruncateString:(NSString *)string toWidth:(float)maxWidth;
40 + (NSString *)rightTruncateString:(NSString *)string toWidth:(float)maxWidth withFont:(NSFont *)fon…
DWebStringTruncator.mm73 + (NSString *)centerTruncateString:(NSString *)string toWidth:(float)maxWidth
75 return StringTruncator::centerTruncate(string, maxWidth, fontFromNSFont(defaultMenuFont()));
78 + (NSString *)centerTruncateString:(NSString *)string toWidth:(float)maxWidth withFont:(NSFont *)fo…
80 return StringTruncator::centerTruncate(string, maxWidth, fontFromNSFont(font));
83 + (NSString *)rightTruncateString:(NSString *)string toWidth:(float)maxWidth withFont:(NSFont *)font
85 return StringTruncator::rightTruncate(string, maxWidth, fontFromNSFont(font));
/external/webkit/Source/WebCore/rendering/
DRenderFlexibleBox.cpp195 if (style()->maxWidth().isFixed() && style()->maxWidth().value() != undefinedLength) { in computePreferredLogicalWidths()
196 …idth = min(m_maxPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
197 …idth = min(m_minPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
970 int maxWidth = INT_MAX; in allowedChildFlex() local
972 if (!child->style()->maxWidth().isUndefined() && child->style()->maxWidth().isFixed()) in allowedChildFlex()
973 maxWidth = child->style()->maxWidth().value(); in allowedChildFlex()
974 else if (child->style()->maxWidth().type() == Intrinsic) in allowedChildFlex()
975 maxWidth = child->maxPreferredLogicalWidth(); in allowedChildFlex()
976 else if (child->style()->maxWidth().type() == MinIntrinsic) in allowedChildFlex()
977 maxWidth = child->minPreferredLogicalWidth(); in allowedChildFlex()
[all …]
DRenderScrollbarPart.cpp96 …int maxWidth = style()->maxWidth().isUndefined() ? w : calcScrollbarThicknessUsing(style()->maxWid… in computeScrollbarWidth() local
97 setWidth(max(minWidth, min(maxWidth, w))); in computeScrollbarWidth()
DRenderSlider.cpp91 if (style()->maxWidth().isFixed() && style()->maxWidth().value() != undefinedLength) { in computePreferredLogicalWidths()
92 …idth = min(m_maxPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
93 …idth = min(m_minPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
DAutoTableLayout.cpp222 void AutoTableLayout::computePreferredLogicalWidths(int& minWidth, int& maxWidth) in computePreferredLogicalWidths() argument
228 maxWidth = 0; in computePreferredLogicalWidths()
240 maxWidth += m_layoutStruct[i].effectiveMaxLogicalWidth; in computePreferredLogicalWidths()
254 maxWidth = max(maxWidth, static_cast<int>(min(maxNonPercent, INT_MAX / 2.0f))); in computePreferredLogicalWidths()
255 maxWidth = max(maxWidth, static_cast<int>(min(maxPercent, INT_MAX / 2.0f))); in computePreferredLogicalWidths()
258 maxWidth = max(maxWidth, spanMaxLogicalWidth); in computePreferredLogicalWidths()
262 maxWidth += bordersPaddingAndSpacing; in computePreferredLogicalWidths()
267 maxWidth = minWidth; in computePreferredLogicalWidths()
270 maxWidth = intMaxForLength; in computePreferredLogicalWidths()
DRenderDataGrid.cpp115 if (style()->maxWidth().isFixed() && style()->maxWidth().value() != undefinedLength) { in computePreferredLogicalWidths()
116 …idth = min(m_maxPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
117 …idth = min(m_minPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
DFixedTableLayout.cpp192 void FixedTableLayout::computePreferredLogicalWidths(int& minWidth, int& maxWidth) in computePreferredLogicalWidths() argument
209 maxWidth = minWidth; in computePreferredLogicalWidths()
225 …nt()->inQuirksMode() && m_table->style()->logicalWidth().isPercent() && maxWidth < TABLE_MAX_WIDTH) in computePreferredLogicalWidths()
226 maxWidth = TABLE_MAX_WIDTH; in computePreferredLogicalWidths()
DRenderFileUploadControl.cpp301 if (style()->maxWidth().isFixed() && style()->maxWidth().value() != undefinedLength) { in computePreferredLogicalWidths()
302 …idth = min(m_maxPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
303 …idth = min(m_minPreferredLogicalWidth, computeContentBoxLogicalWidth(style()->maxWidth().value())); in computePreferredLogicalWidths()
DRenderReplaced.cpp264 if (style()->maxWidth().isFixed() && style()->maxWidth().value() != undefinedLength) in computePreferredLogicalWidths()
265 …m_maxPreferredLogicalWidth = min(m_maxPreferredLogicalWidth, style()->maxWidth().value() + (style(… in computePreferredLogicalWidths()
268 || style()->maxWidth().isPercent() || style()->maxHeight().isPercent() in computePreferredLogicalWidths()
DFixedTableLayout.h36 virtual void computePreferredLogicalWidths(int& minWidth, int& maxWidth);
DTableLayout.h41 virtual void computePreferredLogicalWidths(int& minWidth, int& maxWidth) = 0;
DAutoTableLayout.h38 virtual void computePreferredLogicalWidths(int& minWidth, int& maxWidth);
/external/webkit/Source/WebKit/mac/WebView/
DWebTextCompletionController.mm136 CGFloat maxWidth = 0;
141 if (width > maxWidth) {
142 maxWidth = width;
148maxWidth = ceilf([NSScrollView frameSizeForContentSize:NSMakeSize(maxWidth, 100.0f) hasHorizontalS…
149maxWidth = ceilf([NSWindow frameRectForContentRect:NSMakeRect(0.0f, 0.0f, maxWidth, 100.0f) styleM…
150 maxWidth += 5.0f;
151 windowFrame.size.width = max(maxWidth, windowFrame.size.width);
152 maxWidth = min<CGFloat>(400, windowFrame.size.width);
/external/opencv/cvaux/src/
Dcvlcm.cpp58 float maxWidth; member
275 float maxWidth) in cvLinearContorModelFromVoronoiDiagram() argument
279 CvLCM LCM = {NULL, VoronoiDiagram,NULL,NULL,maxWidth}; in cvLinearContorModelFromVoronoiDiagram()
286 if( maxWidth < 0 ) in cvLinearContorModelFromVoronoiDiagram()
376 if(pNode->radius > LCM->maxWidth) in _cvConstructLCM()
381 if(pNode1->radius > LCM->maxWidth) in _cvConstructLCM()
453 if(pNode0->radius <= pLCM->maxWidth && pNode1->radius <= pLCM->maxWidth) in _cvConstructLCMComplexNode()
546 if(pNode1->radius >= pLCM->maxWidth) in _cvConstructLCMEdge()
/external/chromium/chrome/browser/ui/cocoa/find_bar/
Dfind_bar_cocoa_controller.h73 - (void)positionFindBarViewAtMaxY:(CGFloat)maxY maxWidth:(CGFloat)maxWidth;
/external/webkit/Tools/DumpRenderTree/chromium/
DImageDiff.cpp170 int maxWidth = max(baseline.width(), actual.width()); in percentageDifferent() local
174 pixelsDifferent += (maxWidth - w) * h; in percentageDifferent()
177 pixelsDifferent += (maxHeight - h) * maxWidth; in percentageDifferent()
/external/webkit/Source/WebCore/rendering/svg/
DRenderSVGRoot.cpp67 if (style()->maxWidth().isFixed() && style()->maxWidth().value() != undefinedLength) in computePreferredLogicalWidths()
68 …width = min(width, style()->maxWidth().value() + (style()->boxSizing() == CONTENT_BOX ? borderAndP… in computePreferredLogicalWidths()
/external/webkit/Source/WebCore/html/canvas/
DCanvasRenderingContext2D.h216 void fillText(const String& text, float x, float y, float maxWidth);
218 void strokeText(const String& text, float x, float y, float maxWidth);
286 …void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool us…
/external/chromium/chrome/browser/ui/cocoa/
Dtask_manager_mac.mm30 int maxWidth; // If this is -1, 1.5*minColumWidth is used as max width.
245 int minWidth = 200, maxWidth = 400;
251 maxWidth = columnWidths[i].maxWidth;
252 if (maxWidth < 0)
253 maxWidth = 3 * minWidth / 2; // *1.5 for ints.
259 [column.get() setMaxWidth:maxWidth];
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dbrowser_actions_container_view.h79 @property(nonatomic) CGFloat maxWidth;
/external/webkit/Source/WebCore/platform/graphics/qt/
DSimpleFontDataQt.cpp93 m_maxCharWidth = fm.maxWidth(); in platformCharWidthInit()

123