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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 bool isSharable() const; | 1502 bool isSharable() const; |
1503 | 1503 |
1504 bool emptyState() const { return noninherited_flags.emptyState; } | 1504 bool emptyState() const { return noninherited_flags.emptyState; } |
1505 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} | 1505 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} |
1506 | 1506 |
1507 Color visitedDependentColor(int colorProperty) const; | 1507 Color visitedDependentColor(int colorProperty) const; |
1508 | 1508 |
1509 void setHasExplicitlyInheritedProperties() { noninherited_flags.explicitInhe
ritance = true; } | 1509 void setHasExplicitlyInheritedProperties() { noninherited_flags.explicitInhe
ritance = true; } |
1510 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex
plicitInheritance; } | 1510 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex
plicitInheritance; } |
1511 | 1511 |
| 1512 bool hasChildDependentFlags() const { return emptyState() || hasExplicitlyIn
heritedProperties(); } |
| 1513 void copyChildDependentFlagsFrom(const ComputedStyle&); |
| 1514 |
1512 bool hasBoxDecorations() const { return hasBorder() || hasBorderRadius() ||
hasOutline() || hasAppearance() || boxShadow() || hasFilter() || resize() != RES
IZE_NONE; } | 1515 bool hasBoxDecorations() const { return hasBorder() || hasBorderRadius() ||
hasOutline() || hasAppearance() || boxShadow() || hasFilter() || resize() != RES
IZE_NONE; } |
1513 | 1516 |
1514 bool borderObscuresBackground() const; | 1517 bool borderObscuresBackground() const; |
1515 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; | 1518 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru
e, bool includeLogicalRightEdge = true) const; |
1516 | 1519 |
1517 // Initial values for all the properties | 1520 // Initial values for all the properties |
1518 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } | 1521 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } |
1519 static EBorderStyle initialBorderStyle() { return BNONE; } | 1522 static EBorderStyle initialBorderStyle() { return BNONE; } |
1520 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } | 1523 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } |
1521 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1524 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 } | 1881 } |
1879 | 1882 |
1880 inline bool ComputedStyle::hasPseudoElementStyle() const | 1883 inline bool ComputedStyle::hasPseudoElementStyle() const |
1881 { | 1884 { |
1882 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1885 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
1883 } | 1886 } |
1884 | 1887 |
1885 } // namespace blink | 1888 } // namespace blink |
1886 | 1889 |
1887 #endif // ComputedStyle_h | 1890 #endif // ComputedStyle_h |
OLD | NEW |