Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: sky/engine/core/rendering/RenderLayer.h

Issue 793123002: Reverted the wrong one. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/LayerFragment.h ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 27 matching lines...) Expand all
38 * version of this file under the LGPL, indicate your decision by 38 * version of this file under the LGPL, indicate your decision by
39 * deletingthe provisions above and replace them with the notice and 39 * deletingthe provisions above and replace them with the notice and
40 * other provisions required by the MPL or the GPL, as the case may be. 40 * other provisions required by the MPL or the GPL, as the case may be.
41 * If you do not delete the provisions above, a recipient may use your 41 * If you do not delete the provisions above, a recipient may use your
42 * version of this file under any of the LGPL, the MPL or the GPL. 42 * version of this file under any of the LGPL, the MPL or the GPL.
43 */ 43 */
44 44
45 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 45 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
47 47
48 #include "sky/engine/core/rendering/LayerFragment.h"
49 #include "sky/engine/core/rendering/LayerPaintingInfo.h" 48 #include "sky/engine/core/rendering/LayerPaintingInfo.h"
50 #include "sky/engine/core/rendering/RenderBox.h" 49 #include "sky/engine/core/rendering/RenderBox.h"
51 #include "sky/engine/core/rendering/RenderLayerClipper.h" 50 #include "sky/engine/core/rendering/RenderLayerClipper.h"
52 #include "sky/engine/core/rendering/RenderLayerFilterInfo.h" 51 #include "sky/engine/core/rendering/RenderLayerFilterInfo.h"
53 #include "sky/engine/core/rendering/RenderLayerRepainter.h" 52 #include "sky/engine/core/rendering/RenderLayerRepainter.h"
54 #include "sky/engine/core/rendering/RenderLayerScrollableArea.h" 53 #include "sky/engine/core/rendering/RenderLayerScrollableArea.h"
55 #include "sky/engine/core/rendering/RenderLayerStackingNode.h" 54 #include "sky/engine/core/rendering/RenderLayerStackingNode.h"
56 #include "sky/engine/core/rendering/RenderLayerStackingNodeIterator.h" 55 #include "sky/engine/core/rendering/RenderLayerStackingNodeIterator.h"
57 #include "sky/engine/platform/graphics/CompositingReasons.h" 56 #include "sky/engine/platform/graphics/CompositingReasons.h"
58 #include "sky/engine/public/platform/WebBlendMode.h" 57 #include "sky/engine/public/platform/WebBlendMode.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary. 442 // paintLayer() assumes that the caller will clip to the bounds of the paint ing dirty if necessary.
444 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ; 443 void paintLayer(GraphicsContext*, const LayerPaintingInfo&, PaintLayerFlags) ;
445 444
446 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary. 445 // paintLayerContents() assumes that the caller will clip to the bounds of t he painting dirty rect if necessary.
447 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags); 446 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay erFlags);
448 447
449 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); 448 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint());
450 449
451 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags); 450 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags);
452 451
453 void updatePaintingInfoForFragments(LayerFragments&, const LayerPaintingInfo &, bool shouldPaintContent, const LayoutPoint* offsetFromRoot); 452 void paintBackground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
454 void paintBackgroundForFragments(const LayerFragments&, GraphicsContext*, Gr aphicsContext* transparencyLayerContext, 453 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
455 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); 454 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
456 void paintForegroundForFragments(const LayerFragments&, GraphicsContext*, Gr aphicsContext* transparencyLayerContext, 455 void paintForeground(GraphicsContext*, GraphicsContext* transparencyLayerCon text,
457 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer); 456 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, con st LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
458 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&, GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRender er); 457 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
459 void paintOutlineForFragments(const LayerFragments&, GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer); 458 void paintForegroundWithPhase(PaintPhase, GraphicsContext*, const LayerPaint ingInfo&, RenderObject* paintingRootForRenderer,
460 void paintOverflowControlsForFragments(const LayerFragments&, GraphicsContex t*, const LayerPaintingInfo&); 459 LayoutPoint& layerLocation, ClipRect& layerForegroundRect);
461 void paintMaskForFragments(const LayerFragments&, GraphicsContext*, const La yerPaintingInfo&, RenderObject* paintingRootForRenderer); 460 void paintOutline(GraphicsContext*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer,
462 void paintChildClippingMaskForFragments(const LayerFragments&, GraphicsConte xt*, const LayerPaintingInfo&, RenderObject* paintingRootForRenderer, PaintLayer Flags); 461 LayoutPoint& layerLocation, ClipRect& layerOutlineRect);
462 void paintOverflowControls(GraphicsContext*, const LayerPaintingInfo&,
463 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
464 void paintMask(GraphicsContext*, const LayerPaintingInfo&, RenderObject* pai ntingRootForRenderer,
465 LayoutPoint& layerLocation, ClipRect& layerBackgroundRect);
463 466
464 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye r, const HitTestRequest& request, HitTestResult& result, 467 RenderLayer* hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLaye r, const HitTestRequest& request, HitTestResult& result,
465 const LayoutRect& hitTestRect, const HitTestLocati on&, bool appliedTransform, 468 const LayoutRect& hitTestRect, const HitTestLocati on&, bool appliedTransform,
466 const HitTestingTransformState* transformState = 0 , double* zOffset = 0); 469 const HitTestingTransformState* transformState = 0 , double* zOffset = 0);
467 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL ayer* containerLayer, const HitTestRequest&, HitTestResult&, 470 RenderLayer* hitTestLayerByApplyingTransform(RenderLayer* rootLayer, RenderL ayer* containerLayer, const HitTestRequest&, HitTestResult&,
468 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT ransformState* = 0, double* zOffset = 0, 471 const LayoutRect& hitTestRect, const HitTestLocation&, const HitTestingT ransformState* = 0, double* zOffset = 0,
469 const LayoutPoint& translationOffset = LayoutPoint()); 472 const LayoutPoint& translationOffset = LayoutPoint());
470 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons t HitTestRequest&, HitTestResult&, 473 RenderLayer* hitTestChildren(ChildrenIteration, RenderLayer* rootLayer, cons t HitTestRequest&, HitTestResult&,
471 const LayoutRect& hitTestRect, const HitTestLocatio n&, 474 const LayoutRect& hitTestRect, const HitTestLocatio n&,
472 const HitTestingTransformState* transformState, dou ble* zOffsetForDescendants, double* zOffset, 475 const HitTestingTransformState* transformState, dou ble* zOffsetForDescendants, double* zOffset,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 579
577 } // namespace blink 580 } // namespace blink
578 581
579 #ifndef NDEBUG 582 #ifndef NDEBUG
580 // Outside the WebCore namespace for ease of invocation from gdb. 583 // Outside the WebCore namespace for ease of invocation from gdb.
581 void showLayerTree(const blink::RenderLayer*); 584 void showLayerTree(const blink::RenderLayer*);
582 void showLayerTree(const blink::RenderObject*); 585 void showLayerTree(const blink::RenderObject*);
583 #endif 586 #endif
584 587
585 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 588 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/LayerFragment.h ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698