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

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

Issue 99663004: Avoid layout/full-repaint on view height change if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Avoid hang in seamless frames Created 6 years, 11 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/frame/FrameView.cpp ('k') | Source/core/rendering/RenderBox.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 TrackedRendererListHashSet* positionedObjects() const; 117 TrackedRendererListHashSet* positionedObjects() const;
118 bool hasPositionedObjects() const 118 bool hasPositionedObjects() const
119 { 119 {
120 TrackedRendererListHashSet* objects = positionedObjects(); 120 TrackedRendererListHashSet* objects = positionedObjects();
121 return objects && !objects->isEmpty(); 121 return objects && !objects->isEmpty();
122 } 122 }
123 123
124 void addPercentHeightDescendant(RenderBox*); 124 void addPercentHeightDescendant(RenderBox*);
125 static void removePercentHeightDescendant(RenderBox*); 125 static void removePercentHeightDescendant(RenderBox*);
126 TrackedRendererListHashSet* percentHeightDescendants() const;
127 static bool hasPercentHeightContainerMap(); 126 static bool hasPercentHeightContainerMap();
128 static bool hasPercentHeightDescendant(RenderBox*); 127 static bool hasPercentHeightDescendant(RenderBox*);
129 static void clearPercentHeightDescendantsFrom(RenderBox*); 128 static void clearPercentHeightDescendantsFrom(RenderBox*);
130 static void removePercentHeightDescendantIfNeeded(RenderBox*); 129 static void removePercentHeightDescendantIfNeeded(RenderBox*);
131 130
131 TrackedRendererListHashSet* percentHeightDescendants() const;
132 bool hasPercentHeightDescendants() const
133 {
134 TrackedRendererListHashSet* descendants = percentHeightDescendants();
135 return descendants && !descendants->isEmpty();
136 }
137
132 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } 138 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; }
133 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } 139 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; }
134 140
135 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } 141 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; }
136 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } 142 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; }
137 143
138 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } 144 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; }
139 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } 145 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; }
140 146
141 bool hasMarginBeforeQuirk(const RenderBox* child) const; 147 bool hasMarginBeforeQuirk(const RenderBox* child) const;
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 return false; 732 return false;
727 } 733 }
728 return true; 734 return true;
729 } 735 }
730 736
731 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 737 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
732 738
733 } // namespace WebCore 739 } // namespace WebCore
734 740
735 #endif // RenderBlock_h 741 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698