Home | History | Annotate | Download | only in rendering

Lines Matching refs:RenderLayer

45 #include "RenderLayer.h"
135 RenderLayer::RenderLayer(RenderBoxModelObject* renderer)
211 RenderLayer::~RenderLayer()
249 RenderLayerCompositor* RenderLayer::compositor() const
255 void RenderLayer::contentChanged(ContentChangeType changeType)
266 bool RenderLayer::hasAcceleratedCompositing() const
275 bool RenderLayer::canRender3DTransforms() const
284 void RenderLayer::updateLayerPositions(UpdateLayerPositionsFlags flags, IntPoint* cachedOffset)
382 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
398 IntRect RenderLayer::repaintRectIncludingDescendants() const
401 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
406 void RenderLayer::computeRepaintRects()
413 void RenderLayer::updateRepaintRectsAfterScroll(bool fixed)
425 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
429 void RenderLayer::updateTransform()
456 TransformationMatrix RenderLayer::currentTransform() const
474 TransformationMatrix RenderLayer::renderableTransform(PaintBehavior paintBehavior) const
510 void RenderLayer::updatePagination()
523 RenderLayer* ancestorStackingContext = stackingContext();
524 for (RenderLayer* curr = parent(); curr; curr = curr->parent()) {
534 void RenderLayer::setHasVisibleContent(bool b)
545 for (RenderLayer* sc = stackingContext(); sc; sc = sc->stackingContext()) {
556 void RenderLayer::dirtyVisibleContentStatus()
563 void RenderLayer::childVisibilityChanged(bool newVisibility)
568 RenderLayer* l = this;
577 void RenderLayer::dirtyVisibleDescendantStatus()
579 RenderLayer* l = this;
586 void RenderLayer::updateVisibilityStatus()
590 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) {
631 void RenderLayer::dirty3DTransformedDescendantStatus()
633 RenderLayer* curr = stackingContext();
646 bool RenderLayer::update3DTransformedDescendantStatus()
675 void RenderLayer::updateLayerPosition()
678 IntSize inlineBoundingBoxOffset; // We don't put this into the RenderLayer x/y for inlines, so we need to subtract it out when done.
715 RenderLayer* positionedParent = enclosingPositionedAncestor();
750 TransformationMatrix RenderLayer::perspectiveTransform() const
780 FloatPoint RenderLayer::perspectiveOrigin() const
792 RenderLayer* RenderLayer::stackingContext() const
794 RenderLayer* layer = parent();
809 static inline bool isPositionedContainer(RenderLayer* layer)
815 static inline bool isFixedPositionedContainer(RenderLayer* layer)
821 RenderLayer* RenderLayer::enclosingPositionedAncestor() const
823 RenderLayer* curr = parent();
830 RenderLayer* RenderLayer::enclosingTransformedAncestor() const
832 RenderLayer* curr = parent();
839 static inline const RenderLayer* compositingContainer(const RenderLayer* layer)
845 RenderLayer* RenderLayer::enclosingCompositingLayer(bool includeSelf) const
848 return const_cast<RenderLayer*>(this);
850 for (const RenderLayer* curr = compositingContainer(this); curr; curr = compositingContainer(curr)) {
852 return const_cast<RenderLayer*>(curr);
859 RenderLayer* RenderLayer::clippingRoot() const
863 return const_cast<RenderLayer*>(this);
866 const RenderLayer* current = this;
869 return const_cast<RenderLayer*>(current);
878 return const_cast<RenderLayer*>(current);
885 IntPoint RenderLayer::absoluteToContents(const IntPoint& absolutePoint) const
891 bool RenderLayer::requiresSlowRepaints() const
900 bool RenderLayer::isTransparent() const
909 RenderLayer* RenderLayer::transparentPaintingAncestor()
914 for (RenderLayer* curr = parent(); curr; curr = curr->parent()) {
923 static IntRect transparencyClipBox(const RenderLayer* l, const RenderLayer* rootLayer, PaintBehavior paintBehavior);
925 static void expandClipRectForDescendantsAndReflection(IntRect& clipRect, const RenderLayer* l, const RenderLayer* rootLayer, PaintBehavior paintBehavior)
932 for (RenderLayer* curr = l->firstChild(); curr; curr = curr->nextSibling()) {
952 static IntRect transparencyClipBox(const RenderLayer* l, const RenderLayer* rootLayer, PaintBehavior paintBehavior)
979 void RenderLayer::beginTransparencyLayers(GraphicsContext* p, const RenderLayer* rootLayer, PaintBehavior paintBehavior)
984 RenderLayer* ancestor = transparentPaintingAncestor();
1001 void* RenderLayer::operator new(size_t sz, RenderArena* renderArena) throw()
1006 void RenderLayer::operator delete(void* ptr, size_t sz)
1012 void RenderLayer::destroy(RenderArena* renderArena)
1020 void RenderLayer::addChild(RenderLayer* child, RenderLayer* beforeChild)
1022 RenderLayer* prevSibling = beforeChild ? beforeChild->previousSibling() : lastChild();
1058 RenderLayer* RenderLayer::removeChild(RenderLayer* oldChild)
1096 void RenderLayer::removeOnlyThisLayer()
1113 RenderLayer* parent = m_parent;
1114 RenderLayer* nextSib = nextSibling();
1121 RenderLayer* current = m_first;
1123 RenderLayer* next = current->nextSibling();
1134 void RenderLayer::insertOnlyThisLayer()
1139 RenderLayer* parentLayer = renderer()->parent()->enclosingLayer();
1141 RenderLayer* beforeChild = parentLayer->reflectionLayer() != this ? renderer()->parent()->findNextLayer(parentLayer, renderer()) : 0;
1154 RenderLayer::convertToLayerCoords(const RenderLayer* ancestorLayer, int& xPos, int& yPos) const
1173 RenderLayer* fixedPositionContainerLayer = 0;
1175 for (RenderLayer* currLayer = parent(); currLayer; currLayer = currLayer->parent()) {
1204 RenderLayer* parentLayer;
1224 RenderLayer* positionedAncestor = parentLayer->enclosingPositionedAncestor();
1264 void RenderLayer::panScrollFromPoint(const IntPoint& sourcePoint)
1290 void RenderLayer::scrollByRecursively(int xDelta, int yDelta)
1330 void RenderLayer::scrollToOffset(int x, int y)
1335 void RenderLayer::scrollTo(int x, int y)
1376 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
1409 RenderLayer* compositingAncestor = enclosingCompositingLayer();
1412 if (RenderLayer* compositingAncestor = stackingContext()->enclosingCompositingLayer()) {
1458 void RenderLayer::scrollRectToVisible(const IntRect& rect, bool scrollToAnchor, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
1460 RenderLayer* parentLayer = 0;
1545 IntRect RenderLayer::getRectToExpose(const IntRect &visibleRect, const IntRect &exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY)
1618 void RenderLayer::autoscroll()
1636 void RenderLayer::resize(const PlatformMouseEvent& evt, const IntSize& oldOffset)
1701 int RenderLayer::scrollSize(ScrollbarOrientation orientation) const
1707 void RenderLayer::setScrollOffset(const IntPoint& offset)
1712 int RenderLayer::scrollPosition(Scrollbar* scrollbar) const
1721 bool RenderLayer::isActive() const
1727 static IntRect cornerRect(const RenderLayer* layer, const IntRect& bounds)
1751 IntRect RenderLayer::scrollCornerRect() const
1765 static IntRect resizerCornerRect(const RenderLayer* layer, const IntRect& bounds)
1773 IntRect RenderLayer::scrollCornerAndResizerRect() const
1784 bool RenderLayer::isScrollCornerVisible() const
1790 IntRect RenderLayer::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const
1802 IntRect RenderLayer::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const
1813 IntPoint RenderLayer::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& scrollbarPoint) const
1824 IntPoint RenderLayer::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const
1836 IntSize RenderLayer::contentsSize() const
1838 return IntSize(const_cast<RenderLayer*>(this)->scrollWidth(), const_cast<RenderLayer*>(this)->scrollHeight());
1841 int RenderLayer::visibleHeight() const
1846 int RenderLayer::visibleWidth() const
1851 bool RenderLayer::shouldSuspendScrollAnimations() const
1859 IntPoint RenderLayer::currentMousePosition() const
1864 IntSize RenderLayer::scrollbarOffset(const Scrollbar* scrollbar) const
1878 void RenderLayer::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)
1903 void RenderLayer::invalidateScrollCornerRect(const IntRect& rect)
1917 PassRefPtr<Scrollbar> RenderLayer::createScrollbar(ScrollbarOrientation orientation)
1935 void RenderLayer::destroyScrollbar(ScrollbarOrientation orientation)
1954 void RenderLayer::setHasHorizontalScrollbar(bool hasScrollbar)
1977 void RenderLayer::setHasVerticalScrollbar(bool hasScrollbar)
2000 int RenderLayer::verticalScrollbarWidth(OverlayScrollbarSizeRelevancy relevancy) const
2007 int RenderLayer::horizontalScrollbarHeight(OverlayScrollbarSizeRelevancy relevancy) const
2014 IntSize RenderLayer::offsetFromResizeCorner(const IntPoint& absolutePoint) const
2022 bool RenderLayer::hasOverflowControls() const
2027 bool RenderLayer::hasOverflowParent() const
2029 const RenderLayer* layer = this;
2036 void RenderLayer::positionOverflowControls(int tx, int ty)
2093 void RenderLayer::setWidth(int w)
2101 void RenderLayer::setHeight(int h)
2110 int RenderLayer::scrollWidth()
2117 int RenderLayer::scrollHeight()
2124 int RenderLayer::overflowTop() const
2132 int RenderLayer::overflowBottom() const
2140 int RenderLayer::overflowLeft() const
2148 int RenderLayer::overflowRight() const
2156 void RenderLayer::computeScrollDimensions(bool* needHBar, bool* needVBar)
2177 void RenderLayer::updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow)
2200 void RenderLayer::updateScrollInfoAfterLayout()
2326 void RenderLayer::paintOverflowControls(GraphicsContext* context, int tx, int ty, const IntRect& damageRect, bool paintingOverlayControls)
2385 void RenderLayer::paintScrollCorner(GraphicsContext* context, int tx, int ty, const IntRect& damageRect)
2411 void RenderLayer::paintResizer(GraphicsContext* context, int tx, int ty, const IntRect& damageRect)
2454 bool RenderLayer::isPointInResizeControl(const IntPoint& absolutePoint) const
2468 bool RenderLayer::hitTestOverflowControls(HitTestResult& result, const IntPoint& localPoint)
2511 bool RenderLayer::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier)
2516 void RenderLayer::paint(GraphicsContext* p, const IntRect& damageRect, PaintBehavior paintBehavior, RenderObject *paintingRoot)
2525 void RenderLayer::paintOverlayScrollbars(GraphicsContext* p, const IntRect& damageRect, PaintBehavior paintBehavior, RenderObject *paintingRoot)
2549 static void performOverlapTests(OverlapTestRequestMap& overlapTestRequests, const RenderLayer* rootLayer, const RenderLayer* layer)
2566 static bool shouldDoSoftwarePaint(const RenderLayer* layer, bool paintingReflection)
2572 void RenderLayer::paintLayer(RenderLayer* rootLayer, GraphicsContext* p,
2584 // If this RenderLayer should paint into its backing, that will be done via RenderLayerBacking::paintIntoLayer().
2773 void RenderLayer::paintList(Vector<RenderLayer*>* list, RenderLayer* rootLayer, GraphicsContext* p,
2782 RenderLayer* childLayer = list->at(i);
2790 void RenderLayer::paintPaginatedChildLayer(RenderLayer* childLayer, RenderLayer* rootLayer, GraphicsContext* context,
2796 Vector<RenderLayer*> columnLayers;
2797 RenderLayer* ancestorLayer = isNormalFlowOnly() ? parent() : stackingContext();
2798 for (RenderLayer* curr = childLayer->parent(); curr; curr = curr->parent()) {
2810 void RenderLayer::paintChildLayerIntoColumns(RenderLayer* childLayer, RenderLayer* rootLayer, GraphicsContext* context,
2813 PaintLayerFlags paintFlags, const Vector<RenderLayer*>& columnLayers, size_t colIndex)
2903 bool RenderLayer::hitTest(const HitTestRequest& request, HitTestResult& result)
2911 RenderLayer* insideLayer = hitTestLayer(this, 0, request, result, hitTestArea, result.point(), false);
2935 Node* RenderLayer::enclosingElement() const
2962 PassRefPtr<HitTestingTransformState> RenderLayer::createLocalTransformState(RenderLayer* rootLayer, RenderLayer* containerLayer,
2993 static bool isHitCandidate(const RenderLayer* hitLayer, bool canDepthSort, double* zOffset, const HitTestingTransformState* transformState)
3025 RenderLayer* RenderLayer::hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLayer, const HitTestRequest& request, HitTestResult& result,
3137 RenderLayer* candidateLayer = 0;
3140 RenderLayer* hitLayer = hitTestList(m_posZOrderList, rootLayer, request, result, hitTestRect, hitTestPoint,
3204 bool RenderLayer::hitTestContents(const HitTestRequest& request, HitTestResult& result, const IntRect& layerBounds, const IntPoint& hitTestPoint, HitTestFilter hitTestFilter) const
3231 RenderLayer* RenderLayer::hitTestList(Vector<RenderLayer*>* list, RenderLayer* rootLayer,
3242 RenderLayer* resultLayer = 0;
3244 RenderLayer* childLayer = list->at(i);
3245 RenderLayer* hitLayer = 0;
3269 RenderLayer* RenderLayer::hitTestPaginatedChildLayer(RenderLayer* childLayer, RenderLayer* rootLayer, const HitTestRequest& request, HitTestResult& result,
3272 Vector<RenderLayer*> columnLayers;
3273 RenderLayer* ancestorLayer = isNormalFlowOnly() ? parent() : stackingContext();
3274 for (RenderLayer* curr = childLayer->parent(); curr; curr = curr->parent()) {
3286 RenderLayer* RenderLayer::hitTestChildLayerColumns(RenderLayer* childLayer, RenderLayer* rootLayer, const HitTestRequest& request, HitTestResult& result,
3288 RenderLayer*>& columnLayers, size_t columnIndex)
3334 RenderLayer* hitLayer = 0;
3353 RenderLayer* nextLayer = columnLayers[columnIndex - 1];
3372 void RenderLayer::updateClipRects(const RenderLayer* rootLayer, OverlayScrollbarSizeRelevancy relevancy)
3381 RenderLayer* parentLayer = rootLayer != this ? parent() : 0;
3398 void RenderLayer::calculateClipRects(const RenderLayer* rootLayer, ClipRects& clipRects, bool useCached, OverlayScrollbarSizeRelevancy relevancy) const
3408 RenderLayer* parentLayer = rootLayer != this ? parent() : 0;
3468 void RenderLayer::parentClipRects(const RenderLayer* rootLayer, ClipRects& clipRects, bool temporaryClipRects, OverlayScrollbarSizeRelevancy relevancy) const
3480 IntRect RenderLayer::backgroundClipRect(const RenderLayer* rootLayer, bool temporaryClipRects, OverlayScrollbarSizeRelevancy relevancy) const
3497 void RenderLayer::calculateRects(const RenderLayer* rootLayer, const IntRect& paintDirtyRect, IntRect& layerBounds,
3559 IntRect RenderLayer::childrenClipRect() const
3562 RenderLayer* clippingRootLayer = clippingRoot();
3568 IntRect RenderLayer::selfClipRect() const
3571 RenderLayer* clippingRootLayer = clippingRoot();
3577 void RenderLayer::addBlockSelectionGapsBounds(const IntRect& bounds)
3582 void RenderLayer::clearBlockSelectionGapsBounds()
3585 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
3589 void RenderLayer::repaintBlockSelectionGaps()
3591 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
3607 bool RenderLayer::intersectsDamageRect(const IntRect& layerBounds, const IntRect& damageRect, const RenderLayer* rootLayer) const
3631 IntRect RenderLayer::localBoundingBox() const
3678 IntRect RenderLayer::boundingBox(const RenderLayer* ancestorLayer) const
3691 IntRect RenderLayer::absoluteBoundingBox() const
3696 void RenderLayer::clearClipRectsIncludingDescendants()
3703 for (RenderLayer* l = firstChild(); l; l = l->nextSibling())
3707 void RenderLayer::clearClipRects()
3719 RenderLayerBacking* RenderLayer::ensureBacking()
3726 void RenderLayer::clearBacking()
3731 bool RenderLayer::hasCompositedMask() const
3736 GraphicsLayer* RenderLayer::layerForHorizontalScrollbar() const
3741 GraphicsLayer* RenderLayer::layerForVerticalScrollbar() const
3746 GraphicsLayer* RenderLayer::layerForScrollCorner() const
3752 bool RenderLayer::paintsWithTransform(PaintBehavior paintBehavior) const
3762 void RenderLayer::setParent(RenderLayer* parent)
3793 void RenderLayer::updateHoverActiveState(const HitTestRequest& request, HitTestResult& result)
3874 static inline bool compareZIndex(RenderLayer* first, RenderLayer* second)
3879 void RenderLayer::dirtyZOrderLists()
3893 void RenderLayer::dirtyStackingContextZOrderLists()
3895 RenderLayer* sc = stackingContext();
3900 void RenderLayer::dirtyNormalFlowList()
3912 void RenderLayer::updateZOrderLists()
3917 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
3931 void RenderLayer::updateNormalFlowList()
3936 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) {
3940 m_normalFlowList = new Vector<RenderLayer*>;
3948 void RenderLayer::collectLayers(Vector<RenderLayer*>*& posBuffer, Vector<RenderLayer*>*& negBuffer)
3955 Vector<RenderLayer*>*& buffer = (zIndex() >= 0) ? posBuffer : negBuffer;
3959 buffer = new Vector<RenderLayer*>;
3968 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) {
3976 void RenderLayer::updateLayerListsIfNeeded()
3982 void RenderLayer::updateCompositingAndLayerListsIfNeeded()
3994 void RenderLayer::repaintIncludingDescendants()
3997 for (RenderLayer* curr = firstChild(); curr; curr = curr->nextSibling())
4002 void RenderLayer::setBackingNeedsRepaint()
4015 void RenderLayer::setBackingNeedsRepaintInRect(const IntRect& r)
4035 void RenderLayer::repaintIncludingNonCompositingDescendants(RenderBoxModelObject* repaintContainer)
4039 for (RenderLayer* curr = firstChild(); curr; curr = curr->nextSibling()) {
4046 bool RenderLayer::shouldBeNormalFlowOnly() const
4062 bool RenderLayer::isSelfPaintingLayer() const
4078 void RenderLayer::styleChanged(StyleDifference diff, const RenderStyle* oldStyle)
4083 RenderLayer* p = parent();
4135 void RenderLayer::updateScrollCornerStyle()
4151 void RenderLayer::updateResizerStyle()
4167 RenderLayer* RenderLayer::reflectionLayer() const
4172 void RenderLayer::createReflection()
4179 void RenderLayer::removeReflection()
4189 void RenderLayer::updateReflectionStyle()
4226 void RenderLayer::updateContentsScale(float scale)
4237 void showLayerTree(const WebCore::RenderLayer* layer)