| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 const Length& logicalBottom() const { return surround->offset.after(writingM
ode()); } | 401 const Length& logicalBottom() const { return surround->offset.after(writingM
ode()); } |
| 402 | 402 |
| 403 // Whether or not a positioned element requires normal flow x/y to be comput
ed | 403 // Whether or not a positioned element requires normal flow x/y to be comput
ed |
| 404 // to determine its position. | 404 // to determine its position. |
| 405 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } | 405 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } |
| 406 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } | 406 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } |
| 407 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } | 407 bool hasStaticInlinePosition(bool horizontal) const { return horizontal ? ha
sAutoLeftAndRight() : hasAutoTopAndBottom(); } |
| 408 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } | 408 bool hasStaticBlockPosition(bool horizontal) const { return horizontal ? has
AutoTopAndBottom() : hasAutoLeftAndRight(); } |
| 409 | 409 |
| 410 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } | 410 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } |
| 411 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition ||
position() == FixedPosition; } | 411 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; } |
| 412 bool hasInFlowPosition() const { return position() == RelativePosition; } | 412 bool hasInFlowPosition() const { return position() == RelativePosition; } |
| 413 bool hasViewportConstrainedPosition() const { return position() == FixedPosi
tion; } | |
| 414 EFloat floating() const { return static_cast<EFloat>(noninherited_flags.floa
ting); } | 413 EFloat floating() const { return static_cast<EFloat>(noninherited_flags.floa
ting); } |
| 415 | 414 |
| 416 const Length& width() const { return m_box->width(); } | 415 const Length& width() const { return m_box->width(); } |
| 417 const Length& height() const { return m_box->height(); } | 416 const Length& height() const { return m_box->height(); } |
| 418 const Length& minWidth() const { return m_box->minWidth(); } | 417 const Length& minWidth() const { return m_box->minWidth(); } |
| 419 const Length& maxWidth() const { return m_box->maxWidth(); } | 418 const Length& maxWidth() const { return m_box->maxWidth(); } |
| 420 const Length& minHeight() const { return m_box->minHeight(); } | 419 const Length& minHeight() const { return m_box->minHeight(); } |
| 421 const Length& maxHeight() const { return m_box->maxHeight(); } | 420 const Length& maxHeight() const { return m_box->maxHeight(); } |
| 422 | 421 |
| 423 const Length& logicalWidth() const { return isHorizontalWritingMode() ? widt
h() : height(); } | 422 const Length& logicalWidth() const { return isHorizontalWritingMode() ? widt
h() : height(); } |
| (...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 | 1666 |
| 1668 rareInheritedData.access()->m_textOrientation = textOrientation; | 1667 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1669 return true; | 1668 return true; |
| 1670 } | 1669 } |
| 1671 | 1670 |
| 1672 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1671 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1673 | 1672 |
| 1674 } // namespace blink | 1673 } // namespace blink |
| 1675 | 1674 |
| 1676 #endif // RenderStyle_h | 1675 #endif // RenderStyle_h |
| OLD | NEW |