| 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 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } | 472 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } |
| 473 | 473 |
| 474 bool isStyleAvailable() const; | 474 bool isStyleAvailable() const; |
| 475 | 475 |
| 476 bool hasAnyPublicPseudoStyles() const; | 476 bool hasAnyPublicPseudoStyles() const; |
| 477 bool hasPseudoStyle(PseudoId) const; | 477 bool hasPseudoStyle(PseudoId) const; |
| 478 void setHasPseudoStyle(PseudoId); | 478 void setHasPseudoStyle(PseudoId); |
| 479 bool hasUniquePseudoStyle() const; | 479 bool hasUniquePseudoStyle() const; |
| 480 bool hasPseudoElementStyle() const; | 480 bool hasPseudoElementStyle() const; |
| 481 | 481 |
| 482 // Note: canContainAbsolutePositionObjects should return true if canContainF
ixedPositionObjects. |
| 483 // We currently never use this value directly, always OR'ing it with canCont
ainFixedPositionObjects. |
| 482 bool canContainAbsolutePositionObjects() const { return position() != Static
Position; } | 484 bool canContainAbsolutePositionObjects() const { return position() != Static
Position; } |
| 483 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp
erty() || containsPaint();} | 485 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp
erty() || containsPaint();} |
| 484 | 486 |
| 485 // attribute getter methods | 487 // attribute getter methods |
| 486 | 488 |
| 487 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e
ffectiveDisplay); } | 489 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e
ffectiveDisplay); } |
| 488 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags.originalDisplay); } | 490 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited
_flags.originalDisplay); } |
| 489 | 491 |
| 490 const Length& left() const { return surround->offset.left(); } | 492 const Length& left() const { return surround->offset.left(); } |
| 491 const Length& right() const { return surround->offset.right(); } | 493 const Length& right() const { return surround->offset.right(); } |
| (...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 } | 2049 } |
| 2048 | 2050 |
| 2049 inline bool ComputedStyle::hasPseudoElementStyle() const | 2051 inline bool ComputedStyle::hasPseudoElementStyle() const |
| 2050 { | 2052 { |
| 2051 return noninherited_flags.pseudoBits & ElementPseudoIdMask; | 2053 return noninherited_flags.pseudoBits & ElementPseudoIdMask; |
| 2052 } | 2054 } |
| 2053 | 2055 |
| 2054 } // namespace blink | 2056 } // namespace blink |
| 2055 | 2057 |
| 2056 #endif // ComputedStyle_h | 2058 #endif // ComputedStyle_h |
| OLD | NEW |