Searched defs:lineHeight (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium_org/third_party/flot/
H A Djquery.flot.canvas.min.js28 */(function(e){function o(t,o){var u=o.Canvas;n==null&&(r=u.prototype.getTextInfo,i=u.prototype.addText,n=u.prototype.render),u.prototype.render=function(){if(!t.getOptions().canvas)return n.call(this);var e=this.context,r=this._textCache;e.save(),e.textBaseline="middle";for(var i in r)if(s.call(r,i)){var o=r[i];for(var u in o)if(s.call(o,u)){var a=o[u],f=!0;for(var l in a)if(s.call(a,l)){var c=a[l],h=c.positions,p=c.lines;f&&(e.fillStyle=c.font.color,e.font=c.font.definition,f=!1);for(var d=0,v;v=h[d];d++)if(v.active)for(var m=0,g;g=v.lines[m];m++)e.fillText(p[m].text,g[0],g[1]);else h.splice(d--,1);h.length==0&&delete a[l]}}}e.restore()},u.prototype.getTextInfo=function(n,i,s,o,u){if(!t.getOptions().canvas)return r.call(this,n,i,s,o,u);var a,f,l,c;i=""+i,typeof s=="object"?a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family:a=s,f=this._textCache[n],f==null&&(f=this._textCache[n]={}),l=f[a],l==null&&(l=f[a]={}),c=l[i];if(c==null){var h=this.context;if(typeof s!="object"){var p=e("<div>&nbsp;</div>").css("position","absolute").addClass(typeof s=="string"?s:null).appendTo(this.getTextLayer(n));s={lineHeight:p.height(),style:p.css("font-style"),variant:p.css("font-variant"),weight:p.css("font-weight"),family:p.css("font-family"),color:p.css("color")},s.size=p.css("line-height",1).height(),p.remove()}a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family,c=l[i]={width:0,height:0,positions:[],lines:[],font:{definition:a,color:s.color}},h.save(),h.font=a;var d=(i+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n");for(var v=0;v<d.length;++v){var m=d[v],g=h.measureText(m);c.width=Math.max(g.width,c.width),c.height+=s.lineHeight,c.lines.push({text:m,width:g.width,height:s.lineHeight})}h.restore()}return c},u.prototype.addText=function(e,n,r,s,o,u,a,f,l){if(!t.getOptions().canvas) (…)
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSFontValue.h51 RefPtrWillBeMember<CSSPrimitiveValue> lineHeight; member in class:blink::CSSFontValue
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DRenderBR.cpp47 int RenderBR::lineHeight(bool firstLine) const function in class:blink::RenderBR
H A DRenderSearchField.cpp58 LayoutUnit RenderSearchField::computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const argument
64 lineHeight = max(lineHeight, decorationRenderer->logicalHeight());
70 lineHeight = max(lineHeight, cancelRenderer->logicalHeight());
73 return lineHeight + nonContentHeight;
H A DRenderTextControlMultiLine.cpp68 LayoutUnit RenderTextControlMultiLine::computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const argument
70 return lineHeight * toHTMLTextAreaElement(node())->rows() + nonContentHeight;
H A DInlineBox.cpp144 LayoutUnit InlineBox::lineHeight() const function in class:blink::InlineBox
146 return boxModelObject()->lineHeight(m_bitfields.firstLine(), isHorizontal() ? HorizontalLine : VerticalLine, PositionOnContainingLine);
H A DRenderTextControlSingleLine.cpp330 LayoutUnit RenderTextControlSingleLine::computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const argument
332 return lineHeight + nonContentHeight;
350 if (textBlockStyle->fontMetrics().lineSpacing() > lineHeight(true, HorizontalLine, PositionOfInteriorLineBoxes))
H A DInlineFlowBox.cpp130 || parentStyle->lineHeight() != childStyle->lineHeight()
147 || parentStyle->lineHeight() != childStyle->lineHeight()
494 int lineHeight = curr->lineHeight(); local
496 if (maxAscent + maxDescent < lineHeight)
497 maxDescent = lineHeight - maxAscent;
500 if (maxAscent + maxDescent < lineHeight)
501 maxAscent = lineHeight
[all...]
H A DInlineTextBox.cpp125 LayoutUnit InlineTextBox::lineHeight() const function in class:blink::InlineTextBox
130 return toRenderBR(renderer()).lineHeight(isFirstLineStyle());
132 return parent()->lineHeight();
133 return toRenderBoxModelObject(renderer().parent())->lineHeight(isFirstLineStyle(), isHorizontal() ? HorizontalLine : VerticalLine, PositionOnContainingLine);
H A DRenderInline.cpp246 || parentStyle->lineHeight() != style()->lineHeight()));
254 || parentStyle->lineHeight() != childStyle->lineHeight();
1289 LayoutUnit RenderInline::lineHeight(bool firstLine, LineDirectionMode /*direction*/, LinePositionMode /*linePositionMode*/) const function in class:blink::RenderInline
1304 return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fontMetrics.height()) / 2;
H A DRenderListMarker.cpp1476 LayoutUnit RenderListMarker::lineHeight(bool firstLine, LineDirectionMode direction, LinePositionMode linePositionMode) const function in class:blink::RenderListMarker
1479 return m_listItem->lineHeight(firstLine, direction, PositionOfInteriorLineBoxes);
1480 return RenderBox::lineHeight(firstLine, direction, linePositionMode);
H A DRootInlineBox.cpp98 LayoutUnit RootInlineBox::lineHeight() const function in class:blink::RootInlineBox
100 return boxModelObject()->lineHeight(isFirstLineStyle(), isHorizontal() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes);
617 descent = box->lineHeight() - ascent;
640 if (usedFonts && !usedFonts->isEmpty() && (includeFont || (box->renderer().style(isFirstLineStyle())->lineHeight().isNegative() && includeLeading))) {
667 int descentWithLeading = box->lineHeight() - ascentWithLeading;
755 verticalPosition = (verticalPosition - static_cast<LayoutUnit>(fontMetrics.xHeight() / 2) - renderer->lineHeight(firstLine, lineDirection) / 2 + renderer->baselinePosition(baselineType(), firstLine, lineDirection)).round();
758 // lineHeight - baselinePosition is always 0 for replaced elements (except inline blocks), so don't bother wasting time in that case.
760 verticalPosition -= (renderer->lineHeight(firstLine, lineDirection) - renderer->baselinePosition(baselineType(), firstLine, lineDirection));
762 verticalPosition += -renderer->lineHeight(firstLine, lineDirection) / 2 + renderer->baselinePosition(baselineType(), firstLine, lineDirection);
764 LayoutUnit lineHeight; local
[all...]
H A DRenderBlockFlow.cpp827 LayoutUnit lineHeight = logicalBottom - logicalOffset; local
834 // If lineHeight is greater than pageLogicalHeight, but logicalVisualOverflow.height() still fits, we are
844 if (remainingLogicalHeight < lineHeight || (shouldBreakAtLineToAvoidWidow() && lineBreakToAvoidWidow() == lineIndex)) {
849 if (lineHeight > pageLogicalHeight) {
851 remainingLogicalHeight -= std::min(lineHeight - pageLogicalHeight, std::max<LayoutUnit>(0, logicalVisualOverflow.y() - lineBox->lineTopWithLeading()));
853 LayoutUnit totalLogicalHeight = lineHeight + std::max<LayoutUnit>(0, logicalOffset);
855 setPageBreak(logicalOffset, lineHeight - remainingLogicalHeight);
869 setPageBreak(logicalOffset, lineHeight);
H A DRenderBlock.cpp3354 LayoutUnit RenderBlock::lineHeight(bool firstLine, LineDirectionMode direction, LinePositionMode linePositionMode) const function in class:blink::RenderBlock
3361 return RenderBox::lineHeight(firstLine, direction, linePositionMode);
3417 return fontMetrics.ascent(baselineType) + (lineHeight(firstLine, direction, linePositionMode) - fontMetrics.height()) / 2;
3428 return std::max<LayoutUnit>(replacedHeight, lineHeight(isFirstLine, isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes));
3474 + (lineHeight(true, lineDirection, PositionOfInteriorLineBoxes) - fontMetrics.height()) / 2
3493 + (lineHeight(true, lineDirection, PositionOfInteriorLineBoxes) - fontMetrics.height()) / 2
H A DRenderBox.cpp4203 LayoutUnit RenderBox::lineHeight(bool /*firstLine*/, LineDirectionMode direction, LinePositionMode /*linePositionMode*/) const function in class:blink::RenderBox
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
H A DShape.h86 bool lineOverlapsShapeMarginBounds(LayoutUnit lineTop, LayoutUnit lineHeight) const { return lineOverlapsBoundingBox(lineTop, lineHeight, shapeMarginLogicalBoundingBox()); }
93 bool lineOverlapsBoundingBox(LayoutUnit lineTop, LayoutUnit lineHeight, const LayoutRect& rect) const argument
97 return (lineTop < rect.maxY() && lineTop + lineHeight > rect.y()) || (!lineHeight && lineTop == rect.y());
H A DShapeOutsideInfo.cpp279 ShapeOutsideDeltas ShapeOutsideInfo::computeDeltasForContainingBlockLine(const RenderBlockFlow& containingBlock, const FloatingObject& floatingObject, LayoutUnit lineTop, LayoutUnit lineHeight) argument
281 ASSERT(lineHeight >= 0);
286 if (isShapeDirty() || !m_shapeOutsideDeltas.isForLine(borderBoxLineTop, lineHeight)) {
290 if (computedShape().lineOverlapsShapeMarginBounds(referenceBoxLineTop, lineHeight)) {
291 LineSegment segment = computedShape().getExcludedInterval((borderBoxLineTop - logicalTopOffset()), std::min(lineHeight, shapeLogicalBottom() - borderBoxLineTop));
301 m_shapeOutsideDeltas = ShapeOutsideDeltas(leftMarginBoxDelta, rightMarginBoxDelta, true, borderBoxLineTop, lineHeight);
309 m_shapeOutsideDeltas = ShapeOutsideDeltas(floatMarginBoxWidth, -floatMarginBoxWidth, false, borderBoxLineTop, lineHeight);
H A DShapeOutsideInfo.h54 ShapeOutsideDeltas(LayoutUnit leftMarginBoxDelta, LayoutUnit rightMarginBoxDelta, bool lineOverlapsShape, LayoutUnit borderBoxLineTop, LayoutUnit lineHeight) argument
58 , m_lineHeight(lineHeight)
64 bool isForLine(LayoutUnit borderBoxLineTop, LayoutUnit lineHeight) argument
66 return m_isValid && m_borderBoxLineTop == borderBoxLineTop && m_lineHeight == lineHeight;
98 ShapeOutsideDeltas computeDeltasForContainingBlockLine(const RenderBlockFlow&, const FloatingObject&, LayoutUnit lineTop, LayoutUnit lineHeight);
/external/chromium_org/third_party/WebKit/Source/core/rendering/line/
H A DLineWidth.cpp71 LayoutUnit lineHeight = m_block.lineHeight(m_isFirstLine, m_block.isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes); local
72 shapeDeltas = shapeOutsideInfo->computeDeltasForContainingBlockLine(m_block, *newFloat, m_block.logicalHeight(), lineHeight);
147 inline static bool isWholeLineFit(const RenderBlockFlow& block, const LayoutUnit& lineTop, LayoutUnit lineHeight, float uncommittedWidth, bool shouldIndentText) argument
149 for (LayoutUnit lineBottom = lineTop; lineBottom <= lineTop + lineHeight; lineBottom++) {
159 LayoutUnit lineHeight = m_block.lineHeight(isFirstLine, m_block.isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes); local
169 if (newLineWidth >= m_uncommittedWidth && isWholeLineFit(m_block, newLineTop, lineHeight, m_uncommittedWidth, shouldIndentText()))
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/
H A DVTTRegion.cpp67 static const float lineHeight = 5.33; member in namespace:blink
406 // Let lineHeight be '0.0533vh' ('vh' is a CSS unit) and regionHeight be
407 // the text track region height. Let height be 'lineHeight' multiplied
409 double height = lineHeight * m_heightInLines;
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
H A DStyleBuilderCustom.cpp298 Length lineHeight; local
301 lineHeight = RenderStyle::initialLineHeight();
306 lineHeight = primitiveValue->computeLength<Length>(state.cssToLengthConversionData().copyWithAdjustedZoom(multiplier));
308 lineHeight = Length((state.style()->computedFontSize() * primitiveValue->getIntValue()) / 100.0, Fixed);
310 lineHeight = Length(primitiveValue->getDoubleValue() * 100.0, Percent);
316 lineHeight = Length(valueForLength(zoomedLength, state.style()->fontSize()), Fixed);
320 state.style()->setLineHeight(lineHeight);
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
H A DRenderStyle.cpp1158 Length RenderStyle::lineHeight() const function in class:blink::RenderStyle
1176 const Length& lh = lineHeight();
/external/pdfium/core/src/reflow/
H A Dlayoutprocessor_reflow.cpp387 FX_FLOAT lineHeight = Rect1.top - Rect1.bottom; local
388 if(lineHeight > 20 && lineHeight > Rect2.Height() * 2) {
391 if(lineHeight > 5 && Rect2.Height() / 2 > lineHeight) {
395 if (inter_h < (lineHeight) / 2 && inter_h < Rect2.Height() / 2) {
875 FX_FLOAT lineHeight = m_fLineHeight; local
876 if(lineHeight == 0) {
877 lineHeight = m_fCurrLineHeight;
/external/chromium_org/third_party/skia/samplecode/
H A DSampleApp.cpp1237 SkScalar lineHeight = paint.getFontMetrics(NULL); local
1242 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1247 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1253 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1259 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1265 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
/external/skia/samplecode/
H A DSampleApp.cpp1240 SkScalar lineHeight = paint.getFontMetrics(NULL); local
1245 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1250 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1256 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1262 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);
1268 drawText(canvas, string, left, SkScalarMulAdd(lineHeight, i, dest.fTop), paint);

Completed in 426 milliseconds

12