Home
last modified time | relevance | path

Searched refs:boundingBox (Results 1 – 25 of 62) sorted by relevance

123

/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
DBasicShapes.cpp53 void BasicShapeRectangle::path(Path& path, const FloatRect& boundingBox) in path() argument
58 floatValueForLength(m_x, boundingBox.width()) + boundingBox.x(), in path()
59 floatValueForLength(m_y, boundingBox.height()) + boundingBox.y(), in path()
60 floatValueForLength(m_width, boundingBox.width()), in path()
61 floatValueForLength(m_height, boundingBox.height()) in path()
64 floatValueForLength(m_cornerRadiusX, boundingBox.width()), in path()
65 floatValueForLength(m_cornerRadiusY, boundingBox.height()) in path()
85 void BasicShapeCircle::path(Path& path, const FloatRect& boundingBox) in path() argument
88 …float diagonal = sqrtf((boundingBox.width() * boundingBox.width() + boundingBox.height() * boundin… in path()
89 float centerX = floatValueForLength(m_centerX, boundingBox.width()); in path()
[all …]
DRenderStyle.cpp872 void RenderStyle::applyTransform(TransformationMatrix& transform, const FloatRect& boundingBox, App… in applyTransform() argument
877 float offsetX = transformOriginX().type() == Percent ? boundingBox.x() : 0; in applyTransform()
878 float offsetY = transformOriginY().type() == Percent ? boundingBox.y() : 0; in applyTransform()
881 … transform.translate3d(floatValueForLength(transformOriginX(), boundingBox.width(), 0) + offsetX, in applyTransform()
882 floatValueForLength(transformOriginY(), boundingBox.height(), 0) + offsetY, in applyTransform()
888 transformOperations[i]->apply(transform, boundingBox.size()); in applyTransform()
891 … transform.translate3d(-floatValueForLength(transformOriginX(), boundingBox.width(), 0) - offsetX, in applyTransform()
892 -floatValueForLength(transformOriginY(), boundingBox.height(), 0) - offsetY, in applyTransform()
/external/chromium_org/chrome/browser/resources/options/chromeos/
Ddisplay_options.js721 var boundingBox = {left: 0, right: 0, top: 0, bottom: 0}; variable
724 boundingBox.left = Math.min(boundingBox.left, display.x);
725 boundingBox.right = Math.max(
726 boundingBox.right, display.x + display.width);
727 boundingBox.top = Math.min(boundingBox.top, display.y);
728 boundingBox.bottom = Math.max(
729 boundingBox.bottom, display.y + display.height);
735 var areaWidth = boundingBox.right - boundingBox.left + maxWidth;
736 var areaHeight = boundingBox.bottom - boundingBox.top + maxHeight;
748 x: Math.floor((boundingBox.right + boundingBox.left) *
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
DPolygonShape.h63 : m_vertex1(FloatPoint(polygon.boundingBox().x(), minLogicalIntervalTop) + offset) in OffsetPolygonEdge()
64 , m_vertex2(FloatPoint(polygon.boundingBox().maxX(), minLogicalIntervalTop) + offset) in OffsetPolygonEdge()
93 …BoundingBox() const OVERRIDE { return static_cast<LayoutRect>(shapeMarginBounds().boundingBox()); } in shapeMarginLogicalBoundingBox()
94 …oundingBox() const OVERRIDE { return static_cast<LayoutRect>(shapePaddingBounds().boundingBox()); } in shapePaddingLogicalBoundingBox()
DPolygonShape.cpp453 const FloatRect boundingBox = polygon.boundingBox(); in firstIncludedIntervalLogicalTop() local
454 if (minIntervalWidth > boundingBox.width()) in firstIncludedIntervalLogicalTop()
457 float minY = std::max(boundingBox.y(), minIntervalTop); in firstIncludedIntervalLogicalTop()
460 if (maxY > boundingBox.maxY()) in firstIncludedIntervalLogicalTop()
464 polygon.overlappingEdges(minIntervalTop, boundingBox.maxY(), edges); in firstIncludedIntervalLogicalTop()
/external/chromium_org/third_party/WebKit/Source/web/
DViewportAnchor.cpp61 if (node && area(node->boundingBox()) > maxNodeArea) { in findNonEmptyAnchorNode()
67 while (node && node->boundingBox().isEmpty()) in findNonEmptyAnchorNode()
102 m_anchorNodeBounds = node->boundingBox(); in setAnchor()
112 const LayoutRect currentNodeBounds = m_anchorNode->boundingBox(); in computeOrigin()
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGRenderingContext.cpp277 FloatRect boundingBox = m_object->objectBoundingBox(); in bufferForeground() local
282 IntSize expandedBoundingBox = expandedIntSize(boundingBox.size()); in bufferForeground()
290 …if ((imageBuffer = m_paintInfo->context->createCompatibleBuffer(expandedIntSize(boundingBox.size()… in bufferForeground()
292 bufferedRenderingContext->translate(-boundingBox.x(), -boundingBox.y()); in bufferForeground()
300 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); in bufferForeground()
DRenderSVGImage.cpp132 FloatRect boundingBox = repaintRectInLocalCoordinates(); in paint() local
133 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo)) in paint()
154 paintOutline(childPaintInfo, IntRect(boundingBox)); in paint()
DRenderSVGInlineText.cpp130 FloatRect boundingBox; in floatLinesBoundingBox() local
132 boundingBox.unite(box->calculateBoundaries()); in floatLinesBoundingBox()
133 return boundingBox; in floatLinesBoundingBox()
DRenderSVGShape.cpp250 FloatRect boundingBox = repaintRectInLocalCoordinates(); in paint() local
251 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo)) in paint()
300 paintOutline(childPaintInfo, IntRect(boundingBox)); in paint()
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DFloatQuad.h75 bool isEmpty() const { return boundingBox().isEmpty(); } in isEmpty()
107 FloatRect boundingBox() const;
110 return enclosingIntRect(boundingBox()); in enclosingBoundingBox()
DFloatPolygon.h62 FloatRect boundingBox() const { return m_boundingBox; } in boundingBox() function
/external/chromium_org/third_party/WebKit/Source/core/page/
DTouchDisambiguation.cpp71 static float scoreTouchTarget(IntPoint touchPoint, int padding, IntRect boundingBox) in scoreTouchTarget() argument
73 if (boundingBox.isEmpty()) in scoreTouchTarget()
79 IntSize distance = boundingBox.differenceToPoint(touchPoint); in scoreTouchTarget()
DTouchAdjustment.cpp57 IntRect boundingBox() const { return m_quad.enclosingBoundingBox(); } in boundingBox() function in WebCore::TouchAdjustment::SubtargetGeometry
320 IntRect rect = subtarget.boundingBox(); in zoomableIntersectionQuotient()
343 IntRect rect = subtarget.boundingBox(); in hybridDistanceFunction()
391 IntRect contentBounds = geom.boundingBox(); in snapTo()
449 targetArea = it->boundingBox(); in findNodeWithLowestDistanceMetric()
459 targetArea = it->boundingBox(); in findNodeWithLowestDistanceMetric()
DPrintContext.cpp298 IntRect boundingBox = renderer->absoluteBoundingBoxRect(); in outputLinkedDestinations() local
299 if (pageRect.intersects(boundingBox)) { in outputLinkedDestinations()
300 IntPoint point = boundingBox.minXMinYCorner(); in outputLinkedDestinations()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderNamedFlowThread.cpp622 LayoutRect boundingBox; in getRanges() local
624 boundingBox = toRenderInline(renderer)->linesBoundingBox(); in getRanges()
626 boundingBox = toRenderText(renderer)->linesBoundingBox(); in getRanges()
628 boundingBox = toRenderBox(renderer)->frameRect(); in getRanges()
630 boundingBox.move(toRenderBox(renderer)->relativePositionLogicalOffset()); in getRanges()
637 boundingBox.moveBy(logicalOffsetFromTop); in getRanges()
639 … LayoutUnit logicalTopForRenderer = region->logicalTopOfFlowThreadContentRect(boundingBox); in getRanges()
640 … LayoutUnit logicalBottomForRenderer = region->logicalBottomOfFlowThreadContentRect(boundingBox); in getRanges()
DRenderInline.h157 IntRect boundingBox = linesBoundingBox(); in borderBoundingBox() local
158 return IntRect(0, 0, boundingBox.width(), boundingBox.height()); in borderBoundingBox()
DHitTestLocation.cpp69 m_boundingBox = enclosingIntRect(quad.boundingBox()); in HitTestLocation()
129 m_boundingBox = enclosingIntRect(m_transformedRect.boundingBox()); in move()
DRenderGeometryMap.cpp162 result = transformState.lastPlanarQuad().boundingBox(); in mapToContainer()
174 …dResult = lastRenderer->localToContainerQuad(rect, container, m_mapCoordinatesFlags).boundingBox(); in mapToContainer()
178 …SSERT(enclosingIntRect(rendererMappedResult) == enclosingIntRect(FloatQuad(result).boundingBox())); in mapToContainer()
DHitTestLocation.h67 IntRect boundingBox() const { return m_boundingBox; } in boundingBox() function
DRenderGeometryMap.h91 return mapToContainer(rect, 0).boundingBox(); in absoluteRect()
/external/chromium_org/third_party/WebKit/Source/web/tests/
DLinkHighlightTest.cpp221 …IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent.y - touchEvent.data.t… in TEST() local
222 …findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goodTargets, highlightNod… in TEST()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DSimpleFontDataMac.mm372 FloatRect boundingBox;
373boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation(…
374 boundingBox.setY(-boundingBox.maxY());
376 boundingBox.setWidth(boundingBox.width() + m_syntheticBoldOffset);
378 return boundingBox;
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorOverlay.cpp153 …IntRect boundingBox = pixelSnappedIntRect(containingView->contentsToRootView(renderer->absoluteBou… in buildNodeQuads() local
154 boundingBox.move(mainView->scrollOffset()); in buildNodeQuads()
553 …IntRect boundingBox = pixelSnappedIntRect(containingView->contentsToRootView(renderer->absoluteBou… in drawNodeHighlight() local
555 …adjustForAbsoluteZoom(modelObject->pixelSnappedOffsetWidth(), modelObject) : boundingBox.width())); in drawNodeHighlight()
556 …justForAbsoluteZoom(modelObject->pixelSnappedOffsetHeight(), modelObject) : boundingBox.height())); in drawNodeHighlight()
/external/chromium_org/third_party/WebKit/Source/core/accessibility/
DAXSlider.cpp151 …->node())->userAgentShadowRoot()->getElementById(ShadowElementNames::sliderThumb())->boundingBox(); in elementRect()

123