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

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: and make assert match expectations 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); } 418 bool isBackgroundColorCurrentColor() const { return backgroundColor().isCurr entColor() || visitedLinkBackgroundColor().isCurrentColor(); }
419 419
420 bool hasBackground() const 420 bool hasBackground() const
421 { 421 {
422 Color color = visitedDependentColor(CSSPropertyBackgroundColor); 422 Color color = visitedDependentColor(CSSPropertyBackgroundColor);
423 if (color.alpha()) 423 if (color.alpha())
424 return true; 424 return true;
425 return hasBackgroundImage(); 425 return hasBackgroundImage() || hasBackdropFilter();
pdr. 2015/09/04 22:42:13 I think we need to return hasBackdropFilter from h
426 } 426 }
427 427
428 LayoutRectOutsets imageOutsets(const NinePieceImage&) const; 428 LayoutRectOutsets imageOutsets(const NinePieceImage&) const;
429 bool hasBorderImageOutsets() const 429 bool hasBorderImageOutsets() const
430 { 430 {
431 return borderImage().hasImage() && borderImage().outset().nonZero(); 431 return borderImage().hasImage() && borderImage().outset().nonZero();
432 } 432 }
433 LayoutRectOutsets borderImageOutsets() const 433 LayoutRectOutsets borderImageOutsets() const
434 { 434 {
435 return imageOutsets(borderImage()); 435 return imageOutsets(borderImage());
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1962 } 1962 }
1963 1963
1964 inline bool ComputedStyle::hasPseudoElementStyle() const 1964 inline bool ComputedStyle::hasPseudoElementStyle() const
1965 { 1965 {
1966 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1966 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1967 } 1967 }
1968 1968
1969 } // namespace blink 1969 } // namespace blink
1970 1970
1971 #endif // ComputedStyle_h 1971 #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