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

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

Issue 190973007: Reland "Avoid layout/full-repaint on view height change if possible" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: computeOverflow, etc. Created 6 years, 9 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool hasPositionedObjects() const 113 bool hasPositionedObjects() const
114 { 114 {
115 TrackedRendererListHashSet* objects = positionedObjects(); 115 TrackedRendererListHashSet* objects = positionedObjects();
116 return objects && !objects->isEmpty(); 116 return objects && !objects->isEmpty();
117 } 117 }
118 118
119 virtual bool visibleForTouchAction() const OVERRIDE FINAL { return true; } 119 virtual bool visibleForTouchAction() const OVERRIDE FINAL { return true; }
120 120
121 void addPercentHeightDescendant(RenderBox*); 121 void addPercentHeightDescendant(RenderBox*);
122 static void removePercentHeightDescendant(RenderBox*); 122 static void removePercentHeightDescendant(RenderBox*);
123 TrackedRendererListHashSet* percentHeightDescendants() const;
124 static bool hasPercentHeightContainerMap(); 123 static bool hasPercentHeightContainerMap();
125 static bool hasPercentHeightDescendant(RenderBox*); 124 static bool hasPercentHeightDescendant(RenderBox*);
126 static void clearPercentHeightDescendantsFrom(RenderBox*); 125 static void clearPercentHeightDescendantsFrom(RenderBox*);
127 static void removePercentHeightDescendantIfNeeded(RenderBox*); 126 static void removePercentHeightDescendantIfNeeded(RenderBox*);
128 127
128 TrackedRendererListHashSet* percentHeightDescendants() const;
129 bool hasPercentHeightDescendants() const
130 {
131 TrackedRendererListHashSet* descendants = percentHeightDescendants();
132 return descendants && !descendants->isEmpty();
133 }
134
129 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } 135 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; }
130 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } 136 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; }
131 137
132 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } 138 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; }
133 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } 139 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; }
134 140
135 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } 141 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; }
136 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } 142 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; }
137 143
138 bool hasMarginBeforeQuirk(const RenderBox* child) const; 144 bool hasMarginBeforeQuirk(const RenderBox* child) const;
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 return false; 586 return false;
581 } 587 }
582 return true; 588 return true;
583 } 589 }
584 590
585 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 591 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
586 592
587 } // namespace WebCore 593 } // namespace WebCore
588 594
589 #endif // RenderBlock_h 595 #endif // RenderBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698