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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // attribute getter methods | 338 // attribute getter methods |
339 | 339 |
340 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags._
effectiveDisplay); } | 340 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags._
effectiveDisplay); } |
341 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags._originalDisplay); } | 341 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags._originalDisplay); } |
342 | 342 |
343 Length left() const { return surround->offset.left(); } | 343 Length left() const { return surround->offset.left(); } |
344 Length right() const { return surround->offset.right(); } | 344 Length right() const { return surround->offset.right(); } |
345 Length top() const { return surround->offset.top(); } | 345 Length top() const { return surround->offset.top(); } |
346 Length bottom() const { return surround->offset.bottom(); } | 346 Length bottom() const { return surround->offset.bottom(); } |
347 | 347 |
348 // Whether or not a positioned element requires normal flow x/y to be comput
ed | |
349 // to determine its position. | |
350 bool hasStaticX() const { return (left().isAuto() && right().isAuto()) || le
ft().isStatic() || right().isStatic(); } | |
351 bool hasStaticY() const { return (top().isAuto() && bottom().isAuto()) || to
p().isStatic(); } | |
352 | |
353 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s._position); } | 348 EPosition position() const { return static_cast<EPosition>(noninherited_flag
s._position); } |
354 EFloat floating() const { return static_cast<EFloat>(noninherited_flags._flo
ating); } | 349 EFloat floating() const { return static_cast<EFloat>(noninherited_flags._flo
ating); } |
355 | 350 |
356 Length width() const { return box->width; } | 351 Length width() const { return box->width; } |
357 Length height() const { return box->height; } | 352 Length height() const { return box->height; } |
358 Length minWidth() const { return box->min_width; } | 353 Length minWidth() const { return box->min_width; } |
359 Length maxWidth() const { return box->max_width; } | 354 Length maxWidth() const { return box->max_width; } |
360 Length minHeight() const { return box->min_height; } | 355 Length minHeight() const { return box->min_height; } |
361 Length maxHeight() const { return box->max_height; } | 356 Length maxHeight() const { return box->max_height; } |
362 | 357 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } | 624 EBorderStyle columnRuleStyle() const { return rareNonInheritedData->m_multiC
ol->m_rule.style(); } |
630 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } | 625 unsigned short columnRuleWidth() const { return rareNonInheritedData->m_mult
iCol->ruleWidth(); } |
631 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } | 626 bool columnRuleIsTransparent() const { return rareNonInheritedData->m_multiC
ol->m_rule.isTransparent(); } |
632 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakBefore); } | 627 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakBefore); } |
633 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakInside); } | 628 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo
nInheritedData->m_multiCol->m_breakInside); } |
634 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon
InheritedData->m_multiCol->m_breakAfter); } | 629 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon
InheritedData->m_multiCol->m_breakAfter); } |
635 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } | 630 const TransformOperations& transform() const { return rareNonInheritedData->
m_transform->m_operations; } |
636 Length transformOriginX() const { return rareNonInheritedData->m_transform->
m_x; } | 631 Length transformOriginX() const { return rareNonInheritedData->m_transform->
m_x; } |
637 Length transformOriginY() const { return rareNonInheritedData->m_transform->
m_y; } | 632 Length transformOriginY() const { return rareNonInheritedData->m_transform->
m_y; } |
638 bool hasTransform() const { return !rareNonInheritedData->m_transform->m_ope
rations.operations().isEmpty(); } | 633 bool hasTransform() const { return !rareNonInheritedData->m_transform->m_ope
rations.operations().isEmpty(); } |
639 | 634 void applyTransform(TransformationMatrix&, const IntSize& borderBoxSize, boo
l includeTransformOrigin = true) const; |
640 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }
; | |
641 void applyTransform(TransformationMatrix&, const IntSize& borderBoxSize, App
lyTransformOrigin = IncludeTransformOrigin) const; | |
642 | |
643 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } | 635 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar
eNonInheritedData->m_maskBoxImage.hasImage(); } |
644 // End CSS3 Getters | 636 // End CSS3 Getters |
645 | 637 |
646 // Apple-specific property getter methods | 638 // Apple-specific property getter methods |
647 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } | 639 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in
herited_flags._pointerEvents); } |
648 const AnimationList* animations() const { return rareNonInheritedData->m_ani
mations.get(); } | 640 const AnimationList* animations() const { return rareNonInheritedData->m_ani
mations.get(); } |
649 const AnimationList* transitions() const { return rareNonInheritedData->m_tr
ansitions.get(); } | 641 const AnimationList* transitions() const { return rareNonInheritedData->m_tr
ansitions.get(); } |
650 | 642 |
651 AnimationList* accessAnimations(); | 643 AnimationList* accessAnimations(); |
652 AnimationList* accessTransitions(); | 644 AnimationList* accessTransitions(); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 static const Vector<StyleDashboardRegion>& initialDashboardRegions(); | 1116 static const Vector<StyleDashboardRegion>& initialDashboardRegions(); |
1125 static const Vector<StyleDashboardRegion>& noneDashboardRegions(); | 1117 static const Vector<StyleDashboardRegion>& noneDashboardRegions(); |
1126 #endif | 1118 #endif |
1127 }; | 1119 }; |
1128 | 1120 |
1129 } // namespace WebCore | 1121 } // namespace WebCore |
1130 | 1122 |
1131 #endif // RenderStyle_h | 1123 #endif // RenderStyle_h |
1132 | 1124 |
1133 | 1125 |
OLD | NEW |