Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 sw=2 et tw=78: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef nsIFrameInlines_h___ |
michael@0 | 8 | #define nsIFrameInlines_h___ |
michael@0 | 9 | |
michael@0 | 10 | #include "nsIFrame.h" |
michael@0 | 11 | #include "nsStyleStructInlines.h" |
michael@0 | 12 | |
michael@0 | 13 | bool |
michael@0 | 14 | nsIFrame::IsFlexItem() const |
michael@0 | 15 | { |
michael@0 | 16 | return mParent && |
michael@0 | 17 | mParent->GetType() == nsGkAtoms::flexContainerFrame && |
michael@0 | 18 | !(GetStateBits() & NS_FRAME_OUT_OF_FLOW); |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | bool |
michael@0 | 22 | nsIFrame::IsFloating() const |
michael@0 | 23 | { |
michael@0 | 24 | return StyleDisplay()->IsFloating(this); |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | bool |
michael@0 | 28 | nsIFrame::IsPositioned() const |
michael@0 | 29 | { |
michael@0 | 30 | return StyleDisplay()->IsPositioned(this); |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | bool |
michael@0 | 34 | nsIFrame::IsRelativelyPositioned() const |
michael@0 | 35 | { |
michael@0 | 36 | return StyleDisplay()->IsRelativelyPositioned(this); |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | bool |
michael@0 | 40 | nsIFrame::IsAbsolutelyPositioned() const |
michael@0 | 41 | { |
michael@0 | 42 | return StyleDisplay()->IsAbsolutelyPositioned(this); |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | bool |
michael@0 | 46 | nsIFrame::IsBlockInside() const |
michael@0 | 47 | { |
michael@0 | 48 | return StyleDisplay()->IsBlockInside(this); |
michael@0 | 49 | } |
michael@0 | 50 | |
michael@0 | 51 | bool |
michael@0 | 52 | nsIFrame::IsBlockOutside() const |
michael@0 | 53 | { |
michael@0 | 54 | return StyleDisplay()->IsBlockOutside(this); |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | bool |
michael@0 | 58 | nsIFrame::IsInlineOutside() const |
michael@0 | 59 | { |
michael@0 | 60 | return StyleDisplay()->IsInlineOutside(this); |
michael@0 | 61 | } |
michael@0 | 62 | |
michael@0 | 63 | uint8_t |
michael@0 | 64 | nsIFrame::GetDisplay() const |
michael@0 | 65 | { |
michael@0 | 66 | return StyleDisplay()->GetDisplay(this); |
michael@0 | 67 | } |
michael@0 | 68 | |
michael@0 | 69 | #endif |