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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1121173002: Fix shrink-to-fit when children's writing-mode is orthogonal (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests and test results updated Created 5 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 791
792 virtual IntRect absoluteFocusRingBoundingBoxRect() const; 792 virtual IntRect absoluteFocusRingBoundingBoxRect() const;
793 793
794 static FloatRect absoluteBoundingBoxRectForRange(const Range*); 794 static FloatRect absoluteBoundingBoxRectForRange(const Range*);
795 795
796 // the rect that will be painted if this object is passed as the paintingRoo t 796 // the rect that will be painted if this object is passed as the paintingRoo t
797 IntRect paintingRootRect(IntRect& topLevelRect); 797 IntRect paintingRootRect(IntRect& topLevelRect);
798 798
799 virtual LayoutUnit minPreferredLogicalWidth() const { return 0; } 799 virtual LayoutUnit minPreferredLogicalWidth() const { return 0; }
800 virtual LayoutUnit maxPreferredLogicalWidth() const { return 0; } 800 virtual LayoutUnit maxPreferredLogicalWidth() const { return 0; }
801 void minMaxPreferredLogicalWidthForParent(LayoutUnit& minPreferredLogicalWid th, LayoutUnit& maxPreferredLogicalWidth) const;
801 802
802 const ComputedStyle* style() const { return m_style.get(); } 803 const ComputedStyle* style() const { return m_style.get(); }
803 ComputedStyle* mutableStyle() const { return m_style.get(); } 804 ComputedStyle* mutableStyle() const { return m_style.get(); }
804 805
805 // m_style can only be nullptr before the first style is set, thus most 806 // m_style can only be nullptr before the first style is set, thus most
806 // callers will never see a nullptr style and should use styleRef(). 807 // callers will never see a nullptr style and should use styleRef().
807 // FIXME: It would be better if style() returned a const reference. 808 // FIXME: It would be better if style() returned a const reference.
808 const ComputedStyle& styleRef() const { return mutableStyleRef(); } 809 const ComputedStyle& styleRef() const { return mutableStyleRef(); }
809 ComputedStyle& mutableStyleRef() const { ASSERT(m_style); return *m_style; } 810 ComputedStyle& mutableStyleRef() const { ASSERT(m_style); return *m_style; }
810 811
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 void showTree(const blink::LayoutObject*); 1651 void showTree(const blink::LayoutObject*);
1651 void showLineTree(const blink::LayoutObject*); 1652 void showLineTree(const blink::LayoutObject*);
1652 void showLayoutTree(const blink::LayoutObject* object1); 1653 void showLayoutTree(const blink::LayoutObject* object1);
1653 // We don't make object2 an optional parameter so that showLayoutTree 1654 // We don't make object2 an optional parameter so that showLayoutTree
1654 // can be called from gdb easily. 1655 // can be called from gdb easily.
1655 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1656 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1656 1657
1657 #endif 1658 #endif
1658 1659
1659 #endif // LayoutObject_h 1660 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698