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

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

Issue 261053004: Simplify RenderLayer::setParent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo Created 6 years, 7 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 IsOverflowScroll = 1 << 0, 540 IsOverflowScroll = 1 << 0,
541 HasSeenViewportConstrainedAncestor = 1 << 1, 541 HasSeenViewportConstrainedAncestor = 1 << 1,
542 HasSeenAncestorWithOverflowClip = 1 << 2, 542 HasSeenAncestorWithOverflowClip = 1 << 2,
543 HasChangedAncestor = 1 << 3 543 HasChangedAncestor = 1 << 3
544 }; 544 };
545 typedef unsigned UpdateLayerPositionsAfterScrollFlags; 545 typedef unsigned UpdateLayerPositionsAfterScrollFlags;
546 void updateLayerPositionsAfterScroll(RenderGeometryMap*, UpdateLayerPosition sAfterScrollFlags = NoFlag); 546 void updateLayerPositionsAfterScroll(RenderGeometryMap*, UpdateLayerPosition sAfterScrollFlags = NoFlag);
547 547
548 void setNextSibling(RenderLayer* next) { m_next = next; } 548 void setNextSibling(RenderLayer* next) { m_next = next; }
549 void setPreviousSibling(RenderLayer* prev) { m_previous = prev; } 549 void setPreviousSibling(RenderLayer* prev) { m_previous = prev; }
550 void setParent(RenderLayer* parent);
551 void setFirstChild(RenderLayer* first) { m_first = first; } 550 void setFirstChild(RenderLayer* first) { m_first = first; }
552 void setLastChild(RenderLayer* last) { m_last = last; } 551 void setLastChild(RenderLayer* last) { m_last = last; }
553 552
554 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende rBox(renderer())->location() : LayoutPoint(); } 553 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende rBox(renderer())->location() : LayoutPoint(); }
555 554
556 void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingIn fo&, PaintLayerFlags); 555 void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingIn fo&, PaintLayerFlags);
557 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); 556 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint());
558 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags); 557 void paintChildren(unsigned childrenToVisit, GraphicsContext*, const LayerPa intingInfo&, PaintLayerFlags);
559 void paintPaginatedChildLayer(RenderLayer* childLayer, GraphicsContext*, con st LayerPaintingInfo&, PaintLayerFlags); 558 void paintPaginatedChildLayer(RenderLayer* childLayer, GraphicsContext*, con st LayerPaintingInfo&, PaintLayerFlags);
560 void paintChildLayerIntoColumns(RenderLayer* childLayer, GraphicsContext*, c onst LayerPaintingInfo&, PaintLayerFlags, const Vector<RenderLayer*>& columnLaye rs, size_t columnIndex); 559 void paintChildLayerIntoColumns(RenderLayer* childLayer, GraphicsContext*, c onst LayerPaintingInfo&, PaintLayerFlags, const Vector<RenderLayer*>& columnLaye rs, size_t columnIndex);
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 764
766 } // namespace WebCore 765 } // namespace WebCore
767 766
768 #ifndef NDEBUG 767 #ifndef NDEBUG
769 // Outside the WebCore namespace for ease of invocation from gdb. 768 // Outside the WebCore namespace for ease of invocation from gdb.
770 void showLayerTree(const WebCore::RenderLayer*); 769 void showLayerTree(const WebCore::RenderLayer*);
771 void showLayerTree(const WebCore::RenderObject*); 770 void showLayerTree(const WebCore::RenderObject*);
772 #endif 771 #endif
773 772
774 #endif // RenderLayer_h 773 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « LayoutTests/compositing/squashing/tricky-element-removal-crash-expected.txt ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698