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

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

Issue 343103003: Flexbox: Allow intrinsic aspect ratios to inform main-size calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « Source/core/rendering/RenderFlexibleBox.cpp ('k') | Source/core/rendering/RenderReplaced.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) 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 bool normalChildNeedsLayout() const { return m_bitfields.normalChildNeedsLay out(); } 598 bool normalChildNeedsLayout() const { return m_bitfields.normalChildNeedsLay out(); }
599 599
600 bool preferredLogicalWidthsDirty() const { return m_bitfields.preferredLogic alWidthsDirty(); } 600 bool preferredLogicalWidthsDirty() const { return m_bitfields.preferredLogic alWidthsDirty(); }
601 601
602 bool needsOverflowRecalcAfterStyleChange() const { return m_bitfields.selfNe edsOverflowRecalcAfterStyleChange() || m_bitfields.childNeedsOverflowRecalcAfter StyleChange(); } 602 bool needsOverflowRecalcAfterStyleChange() const { return m_bitfields.selfNe edsOverflowRecalcAfterStyleChange() || m_bitfields.childNeedsOverflowRecalcAfter StyleChange(); }
603 bool selfNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.se lfNeedsOverflowRecalcAfterStyleChange(); } 603 bool selfNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.se lfNeedsOverflowRecalcAfterStyleChange(); }
604 bool childNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.c hildNeedsOverflowRecalcAfterStyleChange(); } 604 bool childNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.c hildNeedsOverflowRecalcAfterStyleChange(); }
605 605
606 bool isSelectionBorder() const; 606 bool isSelectionBorder() const;
607 607
608 bool hasAspectRatio() const { return isReplaced() && (isImage() || isVideo() || isCanvas()); }
609
608 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); } 610 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); }
609 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 611 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
610 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } 612 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); }
611 613
612 bool hasTransform() const { return m_bitfields.hasTransform(); } 614 bool hasTransform() const { return m_bitfields.hasTransform(); }
613 bool hasMask() const { return style() && style()->hasMask(); } 615 bool hasMask() const { return style() && style()->hasMask(); }
614 bool hasClipPath() const { return style() && style()->clipPath(); } 616 bool hasClipPath() const { return style() && style()->clipPath(); }
615 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 617 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
616 618
617 bool hasFilter() const { return style() && style()->hasFilter(); } 619 bool hasFilter() const { return style() && style()->hasFilter(); }
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 void showTree(const blink::RenderObject*); 1570 void showTree(const blink::RenderObject*);
1569 void showLineTree(const blink::RenderObject*); 1571 void showLineTree(const blink::RenderObject*);
1570 void showRenderTree(const blink::RenderObject* object1); 1572 void showRenderTree(const blink::RenderObject* object1);
1571 // We don't make object2 an optional parameter so that showRenderTree 1573 // We don't make object2 an optional parameter so that showRenderTree
1572 // can be called from gdb easily. 1574 // can be called from gdb easily.
1573 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1575 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1574 1576
1575 #endif 1577 #endif
1576 1578
1577 #endif // RenderObject_h 1579 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.cpp ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698