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

Unified Diff: Source/core/layout/LayoutBlock.cpp

Issue 1304953005: Add some class documentation to LayoutBlock (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Wrap better. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« Source/core/layout/LayoutBlock.h ('K') | « Source/core/layout/LayoutBlock.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBlock.cpp
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp
index 019e3cf68a705528bc7fad606dd03984414ad849..8ded83dd2346abfffd68c882e11c6337ce54ab02 100644
--- a/Source/core/layout/LayoutBlock.cpp
+++ b/Source/core/layout/LayoutBlock.cpp
@@ -88,7 +88,18 @@ struct SameSizeAsLayoutBlock : public LayoutBox {
static_assert(sizeof(LayoutBlock) == sizeof(SameSizeAsLayoutBlock), "LayoutBlock should stay small");
+// This map keeps track of the positioned objects associated with a containing block.
+//
+// This map is cleared at the beginning of layout and populated during layout. The map
mstensho (USE GERRIT) 2015/08/31 12:00:45 It is populated during layout, but it's not cleare
Julien - ping for review 2015/08/31 18:08:30 Indeed, my bad for not checking thoroughly. I have
+// could be invalidated during style change but keeping track of containing blocks at
+// that time is complicated (we are in the middle of recomputing the style so we can't
+// rely on any of its information), which is why it's easier to just recompute it for
+// every layout.
static TrackedDescendantsMap* gPositionedDescendantsMap = nullptr;
+
+// This map keeps track of the descendants whose 'height' is percentage associated
+// with a containing block. Like |gPositionedDescendantsMap|, it is also recomputed
+// for every layout (see the comment above about why).
static TrackedDescendantsMap* gPercentHeightDescendantsMap = nullptr;
static TrackedContainerMap* gPositionedContainerMap = nullptr;
« Source/core/layout/LayoutBlock.h ('K') | « Source/core/layout/LayoutBlock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698