OLD | NEW |
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 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 // Whether or not a positioned element requires normal flow x/y to be comput
ed | 472 // Whether or not a positioned element requires normal flow x/y to be comput
ed |
473 // to determine its position. | 473 // to determine its position. |
474 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } | 474 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } |
475 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } | 475 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } |
476 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } | 476 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } |
477 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } | 477 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } |
478 | 478 |
479 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } | 479 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } |
480 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } | 480 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } |
481 bool hasInFlowPosition() const { return position() == RelativePosition || po
sition() == StickyPosition; } | 481 bool hasInFlowPosition() const { return position() == RelativePosition || po
sition() == StickyPosition; } |
482 bool hasViewportConstrainedPosition() const { return position() == FixedPosi
tion; } | 482 bool hasViewportConstrainedPosition() const { return position() == FixedPosi
tion || position() == StickyPosition; } |
483 EFloat floating() const { return static_cast<EFloat>(noninherited_flags.floa
ting); } | 483 EFloat floating() const { return static_cast<EFloat>(noninherited_flags.floa
ting); } |
484 | 484 |
485 const Length& width() const { return m_box->width(); } | 485 const Length& width() const { return m_box->width(); } |
486 const Length& height() const { return m_box->height(); } | 486 const Length& height() const { return m_box->height(); } |
487 const Length& minWidth() const { return m_box->minWidth(); } | 487 const Length& minWidth() const { return m_box->minWidth(); } |
488 const Length& maxWidth() const { return m_box->maxWidth(); } | 488 const Length& maxWidth() const { return m_box->maxWidth(); } |
489 const Length& minHeight() const { return m_box->minHeight(); } | 489 const Length& minHeight() const { return m_box->minHeight(); } |
490 const Length& maxHeight() const { return m_box->maxHeight(); } | 490 const Length& maxHeight() const { return m_box->maxHeight(); } |
491 | 491 |
492 const Length& logicalWidth() const { return isHorizontalWritingMode() ? widt
h() : height(); } | 492 const Length& logicalWidth() const { return isHorizontalWritingMode() ? widt
h() : height(); } |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2005 } | 2005 } |
2006 | 2006 |
2007 inline bool ComputedStyle::hasPseudoElementStyle() const | 2007 inline bool ComputedStyle::hasPseudoElementStyle() const |
2008 { | 2008 { |
2009 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 2009 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
2010 } | 2010 } |
2011 | 2011 |
2012 } // namespace blink | 2012 } // namespace blink |
2013 | 2013 |
2014 #endif // ComputedStyle_h | 2014 #endif // ComputedStyle_h |
OLD | NEW |