| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 && isLink == other.isLink; | 192 && isLink == other.isLink; |
| 193 } | 193 } |
| 194 | 194 |
| 195 bool operator!=(const NonInheritedFlags& other) const { return !(*this =
= other); } | 195 bool operator!=(const NonInheritedFlags& other) const { return !(*this =
= other); } |
| 196 | 196 |
| 197 unsigned effectiveDisplay : 5; // EDisplay | 197 unsigned effectiveDisplay : 5; // EDisplay |
| 198 unsigned originalDisplay : 5; // EDisplay | 198 unsigned originalDisplay : 5; // EDisplay |
| 199 unsigned overflowX : 3; // EOverflow | 199 unsigned overflowX : 3; // EOverflow |
| 200 unsigned overflowY : 3; // EOverflow | 200 unsigned overflowY : 3; // EOverflow |
| 201 unsigned verticalAlign : 4; // EVerticalAlign | 201 unsigned verticalAlign : 4; // EVerticalAlign |
| 202 unsigned position : 3; // EPosition | 202 unsigned position : 1; // EPosition |
| 203 unsigned tableLayout : 1; // ETableLayout | 203 unsigned tableLayout : 1; // ETableLayout |
| 204 unsigned unicodeBidi : 3; // EUnicodeBidi | 204 unsigned unicodeBidi : 3; // EUnicodeBidi |
| 205 | 205 |
| 206 // This is set if we used viewport units when resolving a length. | 206 // This is set if we used viewport units when resolving a length. |
| 207 // It is mutable so we can pass around const RenderStyles to resolve len
gths. | 207 // It is mutable so we can pass around const RenderStyles to resolve len
gths. |
| 208 mutable unsigned hasViewportUnits : 1; | 208 mutable unsigned hasViewportUnits : 1; |
| 209 | 209 |
| 210 // 32 bits | 210 // 32 bits |
| 211 | 211 |
| 212 unsigned pageBreakBefore : 2; // EPageBreak | 212 unsigned pageBreakBefore : 2; // EPageBreak |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 // Whether or not a positioned element requires normal flow x/y to be comput
ed | 368 // Whether or not a positioned element requires normal flow x/y to be comput
ed |
| 369 // to determine its position. | 369 // to determine its position. |
| 370 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } | 370 bool hasAutoLeftAndRight() const { return left().isAuto() && right().isAuto(
); } |
| 371 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } | 371 bool hasAutoTopAndBottom() const { return top().isAuto() && bottom().isAuto(
); } |
| 372 bool hasStaticInlinePosition() const { return hasAutoLeftAndRight(); } | 372 bool hasStaticInlinePosition() const { return hasAutoLeftAndRight(); } |
| 373 bool hasStaticBlockPosition() const { return hasAutoTopAndBottom(); } | 373 bool hasStaticBlockPosition() const { return hasAutoTopAndBottom(); } |
| 374 | 374 |
| 375 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } | 375 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s.position); } |
| 376 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; } | 376 bool hasOutOfFlowPosition() const { return position() == AbsolutePosition; } |
| 377 bool hasInFlowPosition() const { return position() == RelativePosition; } | 377 // FIXME(sky): Remove |
| 378 bool hasInFlowPosition() const { return false; } |
| 378 | 379 |
| 379 const Length& width() const { return m_box->width(); } | 380 const Length& width() const { return m_box->width(); } |
| 380 const Length& height() const { return m_box->height(); } | 381 const Length& height() const { return m_box->height(); } |
| 381 const Length& minWidth() const { return m_box->minWidth(); } | 382 const Length& minWidth() const { return m_box->minWidth(); } |
| 382 const Length& maxWidth() const { return m_box->maxWidth(); } | 383 const Length& maxWidth() const { return m_box->maxWidth(); } |
| 383 const Length& minHeight() const { return m_box->minHeight(); } | 384 const Length& minHeight() const { return m_box->minHeight(); } |
| 384 const Length& maxHeight() const { return m_box->maxHeight(); } | 385 const Length& maxHeight() const { return m_box->maxHeight(); } |
| 385 | 386 |
| 386 const Length& logicalWidth() const { return width(); } | 387 const Length& logicalWidth() const { return width(); } |
| 387 const Length& logicalHeight() const { return height(); } | 388 const Length& logicalHeight() const { return height(); } |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 | 1305 |
| 1305 rareInheritedData.access()->m_textOrientation = textOrientation; | 1306 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1306 return true; | 1307 return true; |
| 1307 } | 1308 } |
| 1308 | 1309 |
| 1309 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1310 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
| 1310 | 1311 |
| 1311 } // namespace blink | 1312 } // namespace blink |
| 1312 | 1313 |
| 1313 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ | 1314 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ |
| OLD | NEW |