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

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

Issue 201153008: Fix RenderBlock::percentHeightDescendants() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 return false; 590 return false;
585 } 591 }
586 return true; 592 return true;
587 } 593 }
588 594
589 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 595 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
590 596
591 } // namespace WebCore 597 } // namespace WebCore
592 598
593 #endif // RenderBlock_h 599 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698