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

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

Issue 372023002: Abs-positioned objects should move with inline rel-positioned containers when the latter change wid… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 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 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // Resolve auto margins in the chosen direction of the containing block so t hat objects can be pushed to the start, middle or end 393 // Resolve auto margins in the chosen direction of the containing block so t hat objects can be pushed to the start, middle or end
394 // of the containing block. 394 // of the containing block.
395 void computeMarginsForDirection(MarginDirection forDirection, const RenderBl ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS tartEnd) const; 395 void computeMarginsForDirection(MarginDirection forDirection, const RenderBl ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS tartEnd) const;
396 396
397 // Used to resolve margins in the containing block's block-flow direction. 397 // Used to resolve margins in the containing block's block-flow direction.
398 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock); 398 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock);
399 399
400 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const; 400 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const;
401 401
402 void positionLineBox(InlineBox*); 402 void positionLineBox(InlineBox*);
403 void moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal);
403 404
404 virtual InlineBox* createInlineBox(); 405 virtual InlineBox* createInlineBox();
405 void dirtyLineBoxes(bool fullLayout); 406 void dirtyLineBoxes(bool fullLayout);
406 407
407 // For inline replaced elements, this function returns the inline box that o wns us. Enables 408 // For inline replaced elements, this function returns the inline box that o wns us. Enables
408 // the replaced RenderObject to quickly determine what line it is contained on and to easily 409 // the replaced RenderObject to quickly determine what line it is contained on and to easily
409 // iterate over structures on the line. 410 // iterate over structures on the line.
410 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli neBoxWrapper : 0; } 411 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli neBoxWrapper : 0; }
411 void setInlineBoxWrapper(InlineBox*); 412 void setInlineBoxWrapper(InlineBox*);
412 void deleteLineBoxWrapper(); 413 void deleteLineBoxWrapper();
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 if (UNLIKELY(inlineBoxWrapper() != 0)) 784 if (UNLIKELY(inlineBoxWrapper() != 0))
784 deleteLineBoxWrapper(); 785 deleteLineBoxWrapper();
785 } 786 }
786 787
787 ensureRareData().m_inlineBoxWrapper = boxWrapper; 788 ensureRareData().m_inlineBoxWrapper = boxWrapper;
788 } 789 }
789 790
790 } // namespace blink 791 } // namespace blink
791 792
792 #endif // RenderBox_h 793 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698