OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 // paintLayer() assumes that the caller will clip to the bounds of the paint
ing dirty if necessary. | 457 // paintLayer() assumes that the caller will clip to the bounds of the paint
ing dirty if necessary. |
458 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags)
; | 458 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags)
; |
459 | 459 |
460 // paintLayerContents() assumes that the caller will clip to the bounds of t
he painting dirty rect if necessary. | 460 // paintLayerContents() assumes that the caller will clip to the bounds of t
he painting dirty rect if necessary. |
461 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay
erFlags); | 461 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay
erFlags); |
462 | 462 |
463 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo
&, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); | 463 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo
&, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); |
464 | 464 |
465 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa
intingInfo&, PaintLayerFlags); | 465 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa
intingInfo&, PaintLayerFlags); |
466 | 466 |
467 void collectFragments(LayerFragments&, const RenderLayer* rootLayer, const L
ayoutRect& dirtyRect, | |
468 ClipRectsCacheSlot, const LayoutPoint* offsetFromRoot = 0, | |
469 const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect*
layerBoundingBox = 0); | |
470 void updatePaintingInfoForFragments(LayerFragments&, const LayerPaintingInfo
&, bool shouldPaintContent, const LayoutPoint* offsetFromRoot); | 467 void updatePaintingInfoForFragments(LayerFragments&, const LayerPaintingInfo
&, bool shouldPaintContent, const LayoutPoint* offsetFromRoot); |
471 void paintBackgroundForFragments(const LayerFragments&, GraphicsContext*, Gr
aphicsContext* transparencyLayerContext, | 468 void paintBackgroundForFragments(const LayerFragments&, GraphicsContext*, Gr
aphicsContext* transparencyLayerContext, |
472 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con
st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); | 469 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con
st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); |
473 void paintForegroundForFragments(const LayerFragments&, GraphicsContext*, Gr
aphicsContext* transparencyLayerContext, | 470 void paintForegroundForFragments(const LayerFragments&, GraphicsContext*, Gr
aphicsContext* transparencyLayerContext, |
474 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con
st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); | 471 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con
st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); |
475 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&,
GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRender
er); | 472 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&,
GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRender
er); |
476 void paintOutlineForFragments(const LayerFragments&, GraphicsContext*, const
LayerPaintingInfo&, RenderObject* paintingRootForRenderer); | 473 void paintOutlineForFragments(const LayerFragments&, GraphicsContext*, const
LayerPaintingInfo&, RenderObject* paintingRootForRenderer); |
477 void paintOverflowControlsForFragments(const LayerFragments&, GraphicsContex
t*, const LayerPaintingInfo&); | 474 void paintOverflowControlsForFragments(const LayerFragments&, GraphicsContex
t*, const LayerPaintingInfo&); |
478 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La
yerPaintingInfo&, RenderObject* paintingRootForRenderer); | 475 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La
yerPaintingInfo&, RenderObject* paintingRootForRenderer); |
479 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte
xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer
Flags); | 476 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte
xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer
Flags); |
480 | 477 |
481 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye
r, const HitTestRequest& request, HitTestResult& result, | 478 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye
r, const HitTestRequest& request, HitTestResult& result, |
482 const LayoutRect& hitTestRect, const HitTestLocati
on&, bool appliedTransform, | 479 const LayoutRect& hitTestRect, const HitTestLocati
on&, bool appliedTransform, |
483 const HitTestingTransformState* transformState = 0
, double* zOffset = 0); | 480 const HitTestingTransformState* transformState = 0
, double* zOffset = 0); |
484 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL
ayer* containerLayer, const HitTestRequest&, HitTestResult&, | 481 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL
ayer* containerLayer, const HitTestRequest&, HitTestResult&, |
485 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT
ransformState* = 0, double* zOffset = 0, | 482 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT
ransformState* = 0, double* zOffset = 0, |
486 const LayoutPoint& translationOffset = LayoutPoint()); | 483 const LayoutPoint& translationOffset = LayoutPoint()); |
487 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons
t HitTestRequest&, HitTestResult&, | 484 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons
t HitTestRequest&, HitTestResult&, |
488 const LayoutRect& hitTestRect, const HitTestLocatio
n&, | 485 const LayoutRect& hitTestRect, const HitTestLocatio
n&, |
489 const HitTestingTransformState* transformState, dou
ble* zOffsetForDescendants, double* zOffset, | 486 const HitTestingTransformState* transformState, dou
ble* zOffsetForDescendants, double* zOffset, |
490 const HitTestingTransformState* unflattenedTransfor
mState, bool depthSortDescendants); | 487 const HitTestingTransformState* unflattenedTransfor
mState, bool depthSortDescendants); |
491 | 488 |
492 PassRefPtr<HitTestingTransformState> createLocalTransformState(RenderLayer*
rootLayer, RenderLayer* containerLayer, | 489 PassRefPtr<HitTestingTransformState> createLocalTransformState(RenderLayer*
rootLayer, RenderLayer* containerLayer, |
493 const LayoutRect& hitTestRect, const HitTestLocation
&, | 490 const LayoutRect& hitTestRect, const HitTestLocation
&, |
494 const HitTestingTransformState* containerTransformSt
ate, | 491 const HitTestingTransformState* containerTransformSt
ate, |
495 const LayoutPoint& translationOffset = LayoutPoint()
) const; | 492 const LayoutPoint& translationOffset = LayoutPoint()
) const; |
496 | 493 |
497 bool hitTestContents(const HitTestRequest&, HitTestResult&, const LayoutRect
& layerBounds, const HitTestLocation&, HitTestFilter) const; | 494 bool hitTestContents(const HitTestRequest&, HitTestResult&, const LayoutRect
& layerBounds, const HitTestLocation&, HitTestFilter) const; |
498 bool hitTestContentsForFragments(const LayerFragments&, const HitTestRequest
&, HitTestResult&, const HitTestLocation&, HitTestFilter, bool& insideClipRect)
const; | |
499 | 495 |
500 bool childBackgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; | 496 bool childBackgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const; |
501 | 497 |
502 bool shouldBeSelfPaintingLayer() const; | 498 bool shouldBeSelfPaintingLayer() const; |
503 | 499 |
504 // FIXME: We should only create the stacking node if needed. | 500 // FIXME: We should only create the stacking node if needed. |
505 bool requiresStackingNode() const { return true; } | 501 bool requiresStackingNode() const { return true; } |
506 void updateStackingNode(); | 502 void updateStackingNode(); |
507 | 503 |
508 // FIXME: We could lazily allocate our ScrollableArea based on style propert
ies ('overflow', ...) | 504 // FIXME: We could lazily allocate our ScrollableArea based on style propert
ies ('overflow', ...) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 590 |
595 } // namespace blink | 591 } // namespace blink |
596 | 592 |
597 #ifndef NDEBUG | 593 #ifndef NDEBUG |
598 // Outside the WebCore namespace for ease of invocation from gdb. | 594 // Outside the WebCore namespace for ease of invocation from gdb. |
599 void showLayerTree(const blink::RenderLayer*); | 595 void showLayerTree(const blink::RenderLayer*); |
600 void showLayerTree(const blink::RenderObject*); | 596 void showLayerTree(const blink::RenderObject*); |
601 #endif | 597 #endif |
602 | 598 |
603 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ | 599 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ |
OLD | NEW |