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

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

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // direction (so an x-offset in vertical text and a y-offset for horizontal text). 322 // direction (so an x-offset in vertical text and a y-offset for horizontal text).
323 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag eLogicalOffset : LayoutUnit(); } 323 LayoutUnit pageLogicalOffset() const { return m_rareData ? m_rareData->m_pag eLogicalOffset : LayoutUnit(); }
324 void setPageLogicalOffset(LayoutUnit); 324 void setPageLogicalOffset(LayoutUnit);
325 325
326 RootInlineBox* lineGridBox() const { return m_rareData ? m_rareData->m_lineG ridBox : 0; } 326 RootInlineBox* lineGridBox() const { return m_rareData ? m_rareData->m_lineG ridBox : 0; }
327 void setLineGridBox(RootInlineBox* box) 327 void setLineGridBox(RootInlineBox* box)
328 { 328 {
329 if (!m_rareData) 329 if (!m_rareData)
330 m_rareData = adoptPtr(new RenderBlockRareData(this)); 330 m_rareData = adoptPtr(new RenderBlockRareData(this));
331 if (m_rareData->m_lineGridBox) 331 if (m_rareData->m_lineGridBox)
332 m_rareData->m_lineGridBox->destroy(renderArena()); 332 m_rareData->m_lineGridBox->destroy();
333 m_rareData->m_lineGridBox = box; 333 m_rareData->m_lineGridBox = box;
334 } 334 }
335 void layoutLineGridBox(); 335 void layoutLineGridBox();
336 336
337 // Accessors for logical width/height and margins in the containing block's block-flow direction. 337 // Accessors for logical width/height and margins in the containing block's block-flow direction.
338 enum ApplyLayoutDeltaMode { ApplyLayoutDelta, DoNotApplyLayoutDelta }; 338 enum ApplyLayoutDeltaMode { ApplyLayoutDelta, DoNotApplyLayoutDelta };
339 LayoutUnit logicalWidthForChild(const RenderBox* child) { return isHorizonta lWritingMode() ? child->width() : child->height(); } 339 LayoutUnit logicalWidthForChild(const RenderBox* child) { return isHorizonta lWritingMode() ? child->width() : child->height(); }
340 LayoutUnit logicalHeightForChild(const RenderBox* child) { return isHorizont alWritingMode() ? child->height() : child->width(); } 340 LayoutUnit logicalHeightForChild(const RenderBox* child) { return isHorizont alWritingMode() ? child->height() : child->width(); }
341 LayoutUnit logicalTopForChild(const RenderBox* child) { return isHorizontalW ritingMode() ? child->y() : child->x(); } 341 LayoutUnit logicalTopForChild(const RenderBox* child) { return isHorizontalW ritingMode() ? child->y() : child->x(); }
342 void setLogicalLeftForChild(RenderBox* child, LayoutUnit logicalLeft, ApplyL ayoutDeltaMode = DoNotApplyLayoutDelta); 342 void setLogicalLeftForChild(RenderBox* child, LayoutUnit logicalLeft, ApplyL ayoutDeltaMode = DoNotApplyLayoutDelta);
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 static String string(const int value); 1316 static String string(const int value);
1317 }; 1317 };
1318 template<> struct ValueToString<RenderBlock::FloatingObject*> { 1318 template<> struct ValueToString<RenderBlock::FloatingObject*> {
1319 static String string(const RenderBlock::FloatingObject*); 1319 static String string(const RenderBlock::FloatingObject*);
1320 }; 1320 };
1321 #endif 1321 #endif
1322 1322
1323 } // namespace WebCore 1323 } // namespace WebCore
1324 1324
1325 #endif // RenderBlock_h 1325 #endif // RenderBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698