Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: Source/core/style/ComputedStyle.h

Issue 1327973002: blink: Layers that have a backdrop-filter paints contents Base URL: https://chromium.googlesource.com/chromium/blink.git@wk-bf
Patch Set: check for backdrop filter in more places Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/paint/BoxDecorationData.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 bool isFloating() const { return noninherited_flags.floating != NoFloat; } 402 bool isFloating() const { return noninherited_flags.floating != NoFloat; }
403 bool hasMargin() const { return surround->margin.nonZero(); } 403 bool hasMargin() const { return surround->margin.nonZero(); }
404 bool hasBorderFill() const { return surround->border.hasBorderFill(); } 404 bool hasBorderFill() const { return surround->border.hasBorderFill(); }
405 bool hasBorder() const { return surround->border.hasBorder(); } 405 bool hasBorder() const { return surround->border.hasBorder(); }
406 bool hasBorderDecoration() const { return hasBorder() || hasBorderFill(); } 406 bool hasBorderDecoration() const { return hasBorder() || hasBorderFill(); }
407 bool hasPadding() const { return surround->padding.nonZero(); } 407 bool hasPadding() const { return surround->padding.nonZero(); }
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 hasBackgroundImageOrBackdropFilter() const { return hasBackgroundImage( ) || hasBackdropFilter(); }
412 bool hasFixedBackgroundImage() const { return m_background->background().has FixedImage(); } 413 bool hasFixedBackgroundImage() const { return m_background->background().has FixedImage(); }
413 414
414 bool hasEntirelyFixedBackground() const; 415 bool hasEntirelyFixedBackground() const;
415 416
416 bool hasAppearance() const { return appearance() != NoControlPart; } 417 bool hasAppearance() const { return appearance() != NoControlPart; }
417 418
418 bool isBackgroundColorCurrentColor() const { return backgroundColor().isCurr entColor() || visitedLinkBackgroundColor().isCurrentColor(); } 419 bool isBackgroundColorCurrentColor() const { return backgroundColor().isCurr entColor() || visitedLinkBackgroundColor().isCurrentColor(); }
419 420
420 bool hasBackground() const 421 bool hasBackground() const
421 { 422 {
422 Color color = visitedDependentColor(CSSPropertyBackgroundColor); 423 Color color = visitedDependentColor(CSSPropertyBackgroundColor);
423 if (color.alpha()) 424 if (color.alpha())
424 return true; 425 return true;
425 return hasBackgroundImage(); 426 return hasBackgroundImageOrBackdropFilter();
426 } 427 }
427 428
428 LayoutRectOutsets imageOutsets(const NinePieceImage&) const; 429 LayoutRectOutsets imageOutsets(const NinePieceImage&) const;
429 bool hasBorderImageOutsets() const 430 bool hasBorderImageOutsets() const
430 { 431 {
431 return borderImage().hasImage() && borderImage().outset().nonZero(); 432 return borderImage().hasImage() && borderImage().outset().nonZero();
432 } 433 }
433 LayoutRectOutsets borderImageOutsets() const 434 LayoutRectOutsets borderImageOutsets() const
434 { 435 {
435 return imageOutsets(borderImage()); 436 return imageOutsets(borderImage());
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1962 } 1963 }
1963 1964
1964 inline bool ComputedStyle::hasPseudoElementStyle() const 1965 inline bool ComputedStyle::hasPseudoElementStyle() const
1965 { 1966 {
1966 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1967 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1967 } 1968 }
1968 1969
1969 } // namespace blink 1970 } // namespace blink
1970 1971
1971 #endif // ComputedStyle_h 1972 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « Source/core/paint/BoxDecorationData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698