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

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

Issue 381473002: Use reference for FillLayer if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderObject.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 void setIsBox() { m_bitfields.setIsBox(true); } 668 void setIsBox() { m_bitfields.setIsBox(true); }
669 void setReplaced(bool isReplaced) { m_bitfields.setIsReplaced(isReplaced); } 669 void setReplaced(bool isReplaced) { m_bitfields.setIsReplaced(isReplaced); }
670 void setHorizontalWritingMode(bool hasHorizontalWritingMode) { m_bitfields.s etHorizontalWritingMode(hasHorizontalWritingMode); } 670 void setHorizontalWritingMode(bool hasHorizontalWritingMode) { m_bitfields.s etHorizontalWritingMode(hasHorizontalWritingMode); }
671 void setHasOverflowClip(bool hasOverflowClip) { m_bitfields.setHasOverflowCl ip(hasOverflowClip); } 671 void setHasOverflowClip(bool hasOverflowClip) { m_bitfields.setHasOverflowCl ip(hasOverflowClip); }
672 void setHasLayer(bool hasLayer) { m_bitfields.setHasLayer(hasLayer); } 672 void setHasLayer(bool hasLayer) { m_bitfields.setHasLayer(hasLayer); }
673 void setHasTransform(bool hasTransform) { m_bitfields.setHasTransform(hasTra nsform); } 673 void setHasTransform(bool hasTransform) { m_bitfields.setHasTransform(hasTra nsform); }
674 void setHasReflection(bool hasReflection) { m_bitfields.setHasReflection(has Reflection); } 674 void setHasReflection(bool hasReflection) { m_bitfields.setHasReflection(has Reflection); }
675 675
676 void scheduleRelayout(); 676 void scheduleRelayout();
677 677
678 void updateFillImages(const FillLayer*, const FillLayer*); 678 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers );
679 void updateImage(StyleImage*, StyleImage*); 679 void updateImage(StyleImage*, StyleImage*);
680 void updateShapeImage(const ShapeValue*, const ShapeValue*); 680 void updateShapeImage(const ShapeValue*, const ShapeValue*);
681 681
682 virtual void paint(PaintInfo&, const LayoutPoint&); 682 virtual void paint(PaintInfo&, const LayoutPoint&);
683 683
684 // Subclasses must reimplement this method to compute the size and position 684 // Subclasses must reimplement this method to compute the size and position
685 // of this object and all its descendants. 685 // of this object and all its descendants.
686 virtual void layout() = 0; 686 virtual void layout() = 0;
687 virtual bool updateImageLoadingPriorities() { return false; } 687 virtual bool updateImageLoadingPriorities() { return false; }
688 void setHasPendingResourceUpdate(bool hasPendingResourceUpdate) { m_bitfield s.setHasPendingResourceUpdate(hasPendingResourceUpdate); } 688 void setHasPendingResourceUpdate(bool hasPendingResourceUpdate) { m_bitfield s.setHasPendingResourceUpdate(hasPendingResourceUpdate); }
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 void showTree(const WebCore::RenderObject*); 1494 void showTree(const WebCore::RenderObject*);
1495 void showLineTree(const WebCore::RenderObject*); 1495 void showLineTree(const WebCore::RenderObject*);
1496 void showRenderTree(const WebCore::RenderObject* object1); 1496 void showRenderTree(const WebCore::RenderObject* object1);
1497 // We don't make object2 an optional parameter so that showRenderTree 1497 // We don't make object2 an optional parameter so that showRenderTree
1498 // can be called from gdb easily. 1498 // can be called from gdb easily.
1499 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1499 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1500 1500
1501 #endif 1501 #endif
1502 1502
1503 #endif // RenderObject_h 1503 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698