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

Side by Side Diff: sky/engine/core/rendering/RenderBlock.h

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/rendering/RenderBlock.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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 Position positionForBox(InlineBox*, bool start = true) const; 288 Position positionForBox(InlineBox*, bool start = true) const;
289 PositionWithAffinity positionForPointWithInlineChildren(const LayoutPoint&); 289 PositionWithAffinity positionForPointWithInlineChildren(const LayoutPoint&);
290 290
291 // End helper functions and structs used by layoutChildren. 291 // End helper functions and structs used by layoutChildren.
292 292
293 void removeFromGlobalMaps(); 293 void removeFromGlobalMaps();
294 bool widthAvailableToChildrenHasChanged(); 294 bool widthAvailableToChildrenHasChanged();
295 295
296 protected: 296 protected:
297 bool createsBlockFormattingContext() const;
298
299 virtual bool updateLogicalWidthAndColumnWidth(); 297 virtual bool updateLogicalWidthAndColumnWidth();
300 298
301 protected: 299 protected:
302 RenderObjectChildList m_children; 300 RenderObjectChildList m_children;
303 RenderLineBoxList m_lineBoxes; // All of the root line boxes created for t his block flow. For example, <div>Hello<br>world.</div> will have two total lin es for the <div>. 301 RenderLineBoxList m_lineBoxes; // All of the root line boxes created for t his block flow. For example, <div>Hello<br>world.</div> will have two total lin es for the <div>.
304 302
305 LayoutUnit m_pageLogicalOffset; 303 LayoutUnit m_pageLogicalOffset;
306 304
307 unsigned m_hasMarginBeforeQuirk : 1; // Note these quirk values can't be put in RenderBlockRareData since they are set too frequently. 305 unsigned m_hasMarginBeforeQuirk : 1; // Note these quirk values can't be put in RenderBlockRareData since they are set too frequently.
308 unsigned m_hasMarginAfterQuirk : 1; 306 unsigned m_hasMarginAfterQuirk : 1;
309 unsigned m_beingDestroyed : 1; 307 unsigned m_beingDestroyed : 1;
310 unsigned m_hasBorderOrPaddingLogicalWidthChanged : 1; 308 unsigned m_hasBorderOrPaddingLogicalWidthChanged : 1;
311 309
312 // FIXME-BLOCKFLOW: Remove this when the line layout stuff has all moved out of RenderBlock 310 // FIXME-BLOCKFLOW: Remove this when the line layout stuff has all moved out of RenderBlock
313 friend class LineBreaker; 311 friend class LineBreaker;
314 312
315 // FIXME: This is temporary as we move code that accesses block flow 313 // FIXME: This is temporary as we move code that accesses block flow
316 // member variables out of RenderBlock and into RenderBlockFlow. 314 // member variables out of RenderBlock and into RenderBlockFlow.
317 friend class RenderBlockFlow; 315 friend class RenderBlockFlow;
318 friend class RenderParagraph; 316 friend class RenderParagraph;
319 }; 317 };
320 318
321 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 319 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
322 320
323 } // namespace blink 321 } // namespace blink
324 322
325 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ 323 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_
OLDNEW
« no previous file with comments | « sky/engine/core/page/EventHandler.cpp ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698