| 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 | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 3522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3533 // how it works. | 3533 // how it works. |
| 3534 Color visitedDependentColor(int colorProperty) const; | 3534 Color visitedDependentColor(int colorProperty) const; |
| 3535 | 3535 |
| 3536 // -webkit-appearance utility functions. | 3536 // -webkit-appearance utility functions. |
| 3537 bool hasAppearance() const { return appearance() != NoControlPart; } | 3537 bool hasAppearance() const { return appearance() != NoControlPart; } |
| 3538 | 3538 |
| 3539 // Other utility functions. | 3539 // Other utility functions. |
| 3540 bool isStyleAvailable() const; | 3540 bool isStyleAvailable() const; |
| 3541 bool isSharable() const; | 3541 bool isSharable() const; |
| 3542 | 3542 |
| 3543 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, |
| 3544 ApplyMotionPath) const; |
| 3545 |
| 3543 private: | 3546 private: |
| 3544 void setVisitedLinkColor(const Color&); | 3547 void setVisitedLinkColor(const Color&); |
| 3545 void setVisitedLinkBackgroundColor(const StyleColor& v) { | 3548 void setVisitedLinkBackgroundColor(const StyleColor& v) { |
| 3546 SET_VAR(m_rareNonInheritedData, m_visitedLinkBackgroundColor, v); | 3549 SET_VAR(m_rareNonInheritedData, m_visitedLinkBackgroundColor, v); |
| 3547 } | 3550 } |
| 3548 void setVisitedLinkBorderLeftColor(const StyleColor& v) { | 3551 void setVisitedLinkBorderLeftColor(const StyleColor& v) { |
| 3549 SET_VAR(m_rareNonInheritedData, m_visitedLinkBorderLeftColor, v); | 3552 SET_VAR(m_rareNonInheritedData, m_visitedLinkBorderLeftColor, v); |
| 3550 } | 3553 } |
| 3551 void setVisitedLinkBorderRightColor(const StyleColor& v) { | 3554 void setVisitedLinkBorderRightColor(const StyleColor& v) { |
| 3552 SET_VAR(m_rareNonInheritedData, m_visitedLinkBorderRightColor, v); | 3555 SET_VAR(m_rareNonInheritedData, m_visitedLinkBorderRightColor, v); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3714 bool diffNeedsFullLayout(const ComputedStyle& other) const; | 3717 bool diffNeedsFullLayout(const ComputedStyle& other) const; |
| 3715 bool diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const; | 3718 bool diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const; |
| 3716 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; | 3719 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; |
| 3717 bool diffNeedsPaintInvalidationObjectForPaintImage( | 3720 bool diffNeedsPaintInvalidationObjectForPaintImage( |
| 3718 const StyleImage*, | 3721 const StyleImage*, |
| 3719 const ComputedStyle& other) const; | 3722 const ComputedStyle& other) const; |
| 3720 bool diffNeedsPaintInvalidationSelection(const ComputedStyle& other) const; | 3723 bool diffNeedsPaintInvalidationSelection(const ComputedStyle& other) const; |
| 3721 void updatePropertySpecificDifferences(const ComputedStyle& other, | 3724 void updatePropertySpecificDifferences(const ComputedStyle& other, |
| 3722 StyleDifference&) const; | 3725 StyleDifference&) const; |
| 3723 | 3726 |
| 3724 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, | |
| 3725 ApplyMotionPath) const; | |
| 3726 static bool shadowListHasCurrentColor(const ShadowList*); | 3727 static bool shadowListHasCurrentColor(const ShadowList*); |
| 3727 | 3728 |
| 3728 StyleInheritedVariables& mutableInheritedVariables(); | 3729 StyleInheritedVariables& mutableInheritedVariables(); |
| 3729 StyleNonInheritedVariables& mutableNonInheritedVariables(); | 3730 StyleNonInheritedVariables& mutableNonInheritedVariables(); |
| 3730 }; | 3731 }; |
| 3731 | 3732 |
| 3732 // FIXME: Reduce/remove the dependency on zoom adjusted int values. | 3733 // FIXME: Reduce/remove the dependency on zoom adjusted int values. |
| 3733 // The float or LayoutUnit versions of layout values should be used. | 3734 // The float or LayoutUnit versions of layout values should be used. |
| 3734 int adjustForAbsoluteZoom(int value, float zoomFactor); | 3735 int adjustForAbsoluteZoom(int value, float zoomFactor); |
| 3735 | 3736 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3814 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 3815 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
| 3815 } | 3816 } |
| 3816 | 3817 |
| 3817 inline bool ComputedStyle::hasPseudoElementStyle() const { | 3818 inline bool ComputedStyle::hasPseudoElementStyle() const { |
| 3818 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 3819 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
| 3819 } | 3820 } |
| 3820 | 3821 |
| 3821 } // namespace blink | 3822 } // namespace blink |
| 3822 | 3823 |
| 3823 #endif // ComputedStyle_h | 3824 #endif // ComputedStyle_h |
| OLD | NEW |