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

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

Issue 1459953002: Fix the reference box computation for CSS filter effects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO per review Created 5 years, 1 month 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 | « third_party/WebKit/Source/core/paint/PaintLayer.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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 bool hasBorderImageOutsets() const 431 bool hasBorderImageOutsets() const
432 { 432 {
433 return borderImage().hasImage() && borderImage().outset().nonZero(); 433 return borderImage().hasImage() && borderImage().outset().nonZero();
434 } 434 }
435 LayoutRectOutsets borderImageOutsets() const 435 LayoutRectOutsets borderImageOutsets() const
436 { 436 {
437 return imageOutsets(borderImage()); 437 return imageOutsets(borderImage());
438 } 438 }
439 439
440 bool hasFilterOutsets() const { return hasFilter() && filter().hasOutsets(); } 440 bool hasFilterOutsets() const { return hasFilter() && filter().hasOutsets(); }
441 FilterOutsets filterOutsets() const { return hasFilter() ? filter().outsets( ) : FilterOutsets(); }
442
443 Order rtlOrdering() const { return static_cast<Order>(inherited_flags.m_rtlO rdering); } 441 Order rtlOrdering() const { return static_cast<Order>(inherited_flags.m_rtlO rdering); }
444 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } 442 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; }
445 443
446 bool isStyleAvailable() const; 444 bool isStyleAvailable() const;
447 445
448 bool hasAnyPublicPseudoStyles() const; 446 bool hasAnyPublicPseudoStyles() const;
449 bool hasPseudoStyle(PseudoId) const; 447 bool hasPseudoStyle(PseudoId) const;
450 void setHasPseudoStyle(PseudoId); 448 void setHasPseudoStyle(PseudoId);
451 bool hasUniquePseudoStyle() const; 449 bool hasUniquePseudoStyle() const;
452 bool hasPseudoElementStyle() const; 450 bool hasPseudoElementStyle() const;
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 } 1995 }
1998 1996
1999 inline bool ComputedStyle::hasPseudoElementStyle() const 1997 inline bool ComputedStyle::hasPseudoElementStyle() const
2000 { 1998 {
2001 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1999 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2002 } 2000 }
2003 2001
2004 } // namespace blink 2002 } // namespace blink
2005 2003
2006 #endif // ComputedStyle_h 2004 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698