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

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

Issue 1490063002: Implement Paint Containment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename layer method, add inline tests, address comments, bribe chrishtr, lather, rinse, repeat. Created 5 years 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
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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 815
816 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); } 816 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); }
817 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); } 817 StyleReflection* boxReflect() const { return rareNonInheritedData->m_boxRefl ect.get(); }
818 bool reflectionDataEquivalent(const ComputedStyle* otherStyle) const { retur n rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedDa ta); } 818 bool reflectionDataEquivalent(const ComputedStyle* otherStyle) const { retur n rareNonInheritedData->reflectionDataEquivalent(*otherStyle->rareNonInheritedDa ta); }
819 819
820 // FIXME: reflections should belong to this helper function but they are cur rently handled 820 // FIXME: reflections should belong to this helper function but they are cur rently handled
821 // through their self-painting layers. So the layout code doesn't account fo r them. 821 // through their self-painting layers. So the layout code doesn't account fo r them.
822 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma geOutsets() || hasOutline(); } 822 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma geOutsets() || hasOutline(); }
823 823
824 Containment contain() const { return static_cast<Containment>(rareNonInherit edData->m_contain); } 824 Containment contain() const { return static_cast<Containment>(rareNonInherit edData->m_contain); }
825 bool containsPaint() const { return rareNonInheritedData->m_contain & Contai nsPaint; }
825 826
826 EBoxSizing boxSizing() const { return m_box->boxSizing(); } 827 EBoxSizing boxSizing() const { return m_box->boxSizing(); }
827 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); } 828 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); }
828 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); } 829 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); }
829 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); } 830 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); }
830 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); } 831 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); }
831 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol lapse>(rareNonInheritedData->marginBeforeCollapse); } 832 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol lapse>(rareNonInheritedData->marginBeforeCollapse); }
832 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl apse>(rareNonInheritedData->marginAfterCollapse); } 833 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl apse>(rareNonInheritedData->marginAfterCollapse); }
833 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD ata->wordBreak); } 834 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD ata->wordBreak); }
834 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI nheritedData->overflowWrap); } 835 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI nheritedData->overflowWrap); }
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 } 2001 }
2001 2002
2002 inline bool ComputedStyle::hasPseudoElementStyle() const 2003 inline bool ComputedStyle::hasPseudoElementStyle() const
2003 { 2004 {
2004 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2005 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2005 } 2006 }
2006 2007
2007 } // namespace blink 2008 } // namespace blink
2008 2009
2009 #endif // ComputedStyle_h 2010 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698