Home | History | Annotate | Download | only in rendering

Lines Matching refs:layer

335     // - when the document is painted, both layers are painted. The <body> layer doesn't
340 toRenderLayerModelObject(newChild)->layer()->removeOnlyThisLayer();
445 // We need to figure out the layer that follows newObject. We only do
446 // this the first time we find a child layer, and then we update the
451 parentLayer->addChild(toRenderLayerModelObject(obj)->layer(), beforeChild);
475 parentLayer->removeChild(toRenderLayerModelObject(this)->layer());
489 RenderLayer* layer = toRenderLayerModelObject(this)->layer();
490 ASSERT(oldParent == layer->parent());
492 oldParent->removeChild(layer);
493 newParent->addChild(layer);
504 layer passed in. If it's null, we can't find anything.
508 // Step 1: If our layer is a child of the desired parent, then return our layer.
509 RenderLayer* ourLayer = hasLayer() ? toRenderLayerModelObject(this)->layer() : 0;
513 // Step 2: If we don't have a layer, or our layer is the desired parent, then descend
514 // into our siblings trying to find the next layer whose parent is the desired parent.
524 // Step 3: If our layer is the desired parent layer, then we're finished. We didn't
530 // follow us to see if we can locate a layer.
541 return toRenderLayerModelObject(current)->layer();
754 toRenderLayerModelObject(this)->layer()->repainter().setRepaintStatus(NeedsFullRepaintForPositionedMovementLayout);
848 bool RenderObject::mustInvalidateFillLayersPaintOnWidthChange(const FillLayer& layer) const
851 if (layer.next())
855 StyleImage* img = layer.image();
859 if (layer.repeatX() != RepeatFill && layer.repeatX() != NoRepeatFill)
862 if (layer.xPosition().isPercent() && !layer.xPosition().isZero())
865 if (layer.backgroundXOrigin() != LeftEdge)
868 EFillSizeType sizeType = layer.sizeType();
874 if (layer.sizeLength().width().isPercent() && !layer.sizeLength().width().isZero())
876 if (img->isGeneratedImage() && layer.sizeLength().width().isAuto())
885 bool RenderObject::mustInvalidateFillLayersPaintOnHeightChange(const FillLayer& layer) const
888 if (layer.next())
892 StyleImage* img = layer.image();
896 if (layer.repeatY() != RepeatFill && layer.repeatY() != NoRepeatFill)
899 if (layer.yPosition().isPercent() && !layer.yPosition().isZero())
902 if (layer.backgroundYOrigin() != TopEdge)
905 EFillSizeType sizeType = layer.sizeType();
911 if (layer.sizeLength().height().isPercent() && !layer.sizeLength().height().isZero())
913 if (img->isGeneratedImage() && layer.sizeLength().height().isAuto())
1473 return hasLayer() && toRenderLayerModelObject(this)->layer()->isRepaintContainer();
1521 if (paintInvalidationContainer->hasFilter() && paintInvalidationContainer->layer()->requiresFullLayerImageForFilters()) {
1522 paintInvalidationContainer->layer()->repainter().setFilterBackendNeedsRepaintingInRect(r);
1534 ASSERT(paintInvalidationContainer->hasLayer() && (paintInvalidationContainer->layer()->compositingState() == PaintsIntoOwnBacking || paintInvalidationContainer->layer()->compositingState() == PaintsIntoGroupedBacking));
1535 paintInvalidationContainer->layer()->repainter().setBackingNeedsRepaintInRect(r);
1559 return RenderLayer::computeRepaintRect(this, paintInvalidationContainer->layer());
1610 return "layer";
1993 // If transform changed, and the layer does not paint into its own separate backing, then we need to invalidate paints.
1997 if (!isText() && (!hasLayer() || !toRenderLayerModelObject(this)->layer()->styleDeterminedCompositingReasons()))
2003 // If opacity or zIndex changed, and the layer does not paint into its own separate backing, then we need to invalidate paints (also
2006 if (!isText() && (!hasLayer() || !toRenderLayerModelObject(this)->layer()->styleDeterminedCompositingReasons()))
2012 // If filter changed, and the layer does not paint into its own separate backing or it paints with filters, then we need to invalidate paints.
2014 RenderLayer* layer = toRenderLayerModelObject(this)->layer();
2015 if (!layer->styleDeterminedCompositingReasons() || layer->paintsWithFilters())
2027 // layer status of one of these elements changes, we need to force a layout.
2034 // If we have no layer(), just treat a RepaintLayer hint as a normal paint invalidation.
2135 // Now that the layer (if any) has been updated, we need to adjust the diff again,
2152 toRenderLayerModelObject(this)->layer()->repainter().repaintIncludingNonCompositingDescendants();
2182 // Keep layer hierarchy visibility bits up to date if visibility changes.
2184 // We might not have an enclosing layer yet because we might not be in the tree.
2185 if (RenderLayer* layer = enclosingLayer()) {
2187 layer->setHasVisibleContent();
2188 } else if (layer->hasVisibleContent() && (this == layer->renderer() || layer->renderer()->style()->visibility() != VISIBLE)) {
2189 layer->dirtyVisibleContentStatus();
2311 // Don't check for paint invalidation here; we need to wait until the layer has been
2471 // so check the layer's transform directly.
2472 return (hasLayer() && toRenderLayerModelObject(this)->layer()->transform()) || (containerObject && containerObject->style()->hasPerspective());
2479 RenderLayer* layer;
2480 if (hasLayer() && (layer = toRenderLayerModelObject(this)->layer()) && layer->transform())
2481 transform.multiply(layer->currentTransform());
2486 FloatPoint perspectiveOrigin = toRenderLayerModelObject(containerObject)->layer()->perspectiveOrigin();
2562 // Figure out what layer our container is in. Any offset (or new layer) for this
2572 // If the layer itself is scrolled, we have to undo the subtraction of its scroll
2595 // When we get to have a lot of rects on a layer, the performance cost of tracking those
2611 // Just mark the entire layer instead, and switch to walking the layer
2644 return toRenderLayerModelObject(object)->layer()->root()->isRootLayer();
2797 // Keep our layer hierarchy updated. Optimize for the common case where we don't have any children
2798 // and don't have a layer attached to ourselves.
2799 RenderLayer* layer = 0;
2801 layer = parent()->enclosingLayer();
2802 addLayers(layer);
2805 // If |this| is visible but this object was not, tell the layer it has some visible content
2806 // that needs to be drawn and layer visibility optimization can't be used
2808 if (!layer)
2809 layer = parent()->enclosingLayer();
2810 if (layer)
2811 layer->setHasVisibleContent();
2822 // If we remove a visible child from an invisible parent, we don't know the layer visibility any more.
2823 RenderLayer* layer = 0;
2825 layer = parent()->enclosingLayer();
2826 if (layer)
2827 layer->dirtyVisibleContentStatus();
2830 // Keep our layer hierarchy updated.
2832 if (!layer)
2833 layer = parent()->enclosingLayer();
2834 removeLayers(layer);
2957 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingState() : NotComposited;
2969 // First test the foreground layer (lines and inlines).