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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 301843002: Store repaint rects in the coordinate space of their backing GraphicsLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comment. Created 6 years, 6 months 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 | Annotate | Revision Log
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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 bool hasCompositedMask() const; 345 bool hasCompositedMask() const;
346 bool hasCompositedClippingMask() const; 346 bool hasCompositedClippingMask() const;
347 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla bleArea->needsCompositedScrolling(); } 347 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla bleArea->needsCompositedScrolling(); }
348 348
349 bool clipsCompositingDescendantsWithBorderRadius() const; 349 bool clipsCompositingDescendantsWithBorderRadius() const;
350 350
351 RenderLayer* scrollParent() const; 351 RenderLayer* scrollParent() const;
352 RenderLayer* clipParent() const; 352 RenderLayer* clipParent() const;
353 353
354 // Adjusts the given rect to the coordinate space of the repaint container's GraphicsLayer backing.
355 void computeRectForRepaint(const RenderLayerModelObject* repaintContainer, L ayoutRect&) const;
leviw_travelin_and_unemployed 2014/05/29 18:27:08 These 2 functions are really confusing... Can we c
chrishtr 2014/05/29 18:34:11 The function is agnostic to the rect's purpose. It
356
357 // Computes the bounding repaint rect for this layer, in the coordinate spac e of the repaint container's GraphicsLayer backing.
358 LayoutRect computeRepaintRect(const RenderLayerModelObject* repaintContainer ) const;
359
354 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const RenderStyle* newStyle) const; 360 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const RenderStyle* newStyle) const;
355 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const; 361 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const;
356 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co nst RenderStyle* newStyle) const; 362 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co nst RenderStyle* newStyle) const;
357 bool needsCompositingLayersRebuiltForBlending(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const; 363 bool needsCompositingLayersRebuiltForBlending(const RenderStyle* oldStyle, c onst RenderStyle* newStyle) const;
358 364
359 bool paintsWithTransparency(PaintBehavior paintBehavior) const 365 bool paintsWithTransparency(PaintBehavior paintBehavior) const
360 { 366 {
361 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking); 367 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit ingLayers) || compositingState() != PaintsIntoOwnBacking);
362 } 368 }
363 369
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 755
750 } // namespace WebCore 756 } // namespace WebCore
751 757
752 #ifndef NDEBUG 758 #ifndef NDEBUG
753 // Outside the WebCore namespace for ease of invocation from gdb. 759 // Outside the WebCore namespace for ease of invocation from gdb.
754 void showLayerTree(const WebCore::RenderLayer*); 760 void showLayerTree(const WebCore::RenderLayer*);
755 void showLayerTree(const WebCore::RenderObject*); 761 void showLayerTree(const WebCore::RenderObject*);
756 #endif 762 #endif
757 763
758 #endif // RenderLayer_h 764 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698