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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); } | 408 bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); } |
409 bool hasMarginAfterQuirk() const { return marginAfter().quirk(); } | 409 bool hasMarginAfterQuirk() const { return marginAfter().quirk(); } |
410 | 410 |
411 bool hasBackgroundImage() const { return m_background->background().hasImage
(); } | 411 bool hasBackgroundImage() const { return m_background->background().hasImage
(); } |
412 bool hasFixedBackgroundImage() const { return m_background->background().has
FixedImage(); } | 412 bool hasFixedBackgroundImage() const { return m_background->background().has
FixedImage(); } |
413 | 413 |
414 bool hasEntirelyFixedBackground() const; | 414 bool hasEntirelyFixedBackground() const; |
415 | 415 |
416 bool hasAppearance() const { return appearance() != NoControlPart; } | 416 bool hasAppearance() const { return appearance() != NoControlPart; } |
417 | 417 |
| 418 bool isBackgroundColorCurrentColor() const { return backgroundColor().isCurr
entColor() || visitedLinkBackgroundColor().isCurrentColor(); } |
| 419 |
418 bool hasBackground() const | 420 bool hasBackground() const |
419 { | 421 { |
420 Color color = visitedDependentColor(CSSPropertyBackgroundColor); | 422 Color color = visitedDependentColor(CSSPropertyBackgroundColor); |
421 if (color.alpha()) | 423 if (color.alpha()) |
422 return true; | 424 return true; |
423 return hasBackgroundImage(); | 425 return hasBackgroundImage(); |
424 } | 426 } |
425 | 427 |
426 LayoutRectOutsets imageOutsets(const NinePieceImage&) const; | 428 LayoutRectOutsets imageOutsets(const NinePieceImage&) const; |
427 bool hasBorderImageOutsets() const | 429 bool hasBorderImageOutsets() const |
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 } | 1943 } |
1942 | 1944 |
1943 inline bool ComputedStyle::hasPseudoElementStyle() const | 1945 inline bool ComputedStyle::hasPseudoElementStyle() const |
1944 { | 1946 { |
1945 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1947 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; |
1946 } | 1948 } |
1947 | 1949 |
1948 } // namespace blink | 1950 } // namespace blink |
1949 | 1951 |
1950 #endif // ComputedStyle_h | 1952 #endif // ComputedStyle_h |
OLD | NEW |