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

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

Issue 2667543002: Moved nonproperty 'unique' to be generated in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 years, 10 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
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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 // contexts below are painted. 2588 // contexts below are painted.
2589 // See CSS 2.1, Appendix E (https://www.w3.org/TR/CSS21/zindex.html) for more 2589 // See CSS 2.1, Appendix E (https://www.w3.org/TR/CSS21/zindex.html) for more
2590 // details. 2590 // details.
2591 bool isStackingContext() const { 2591 bool isStackingContext() const {
2592 return m_rareNonInheritedData->m_isStackingContext; 2592 return m_rareNonInheritedData->m_isStackingContext;
2593 } 2593 }
2594 void setIsStackingContext(bool b) { 2594 void setIsStackingContext(bool b) {
2595 SET_VAR(m_rareNonInheritedData, m_isStackingContext, b); 2595 SET_VAR(m_rareNonInheritedData, m_isStackingContext, b);
2596 } 2596 }
2597 2597
2598 // A unique style is one that has matches something that makes it impossible
2599 // to share.
2600 bool unique() const { return m_nonInheritedData.m_unique; }
2601 void setUnique() { m_nonInheritedData.m_unique = true; }
2602
2603 float textAutosizingMultiplier() const { 2598 float textAutosizingMultiplier() const {
2604 return m_styleInheritedData->textAutosizingMultiplier; 2599 return m_styleInheritedData->textAutosizingMultiplier;
2605 } 2600 }
2606 void setTextAutosizingMultiplier(float); 2601 void setTextAutosizingMultiplier(float);
2607 2602
2608 bool selfOrAncestorHasDirAutoAttribute() const { 2603 bool selfOrAncestorHasDirAutoAttribute() const {
2609 return m_rareInheritedData->m_selfOrAncestorHasDirAutoAttribute; 2604 return m_rareInheritedData->m_selfOrAncestorHasDirAutoAttribute;
2610 } 2605 }
2611 void setSelfOrAncestorHasDirAutoAttribute(bool v) { 2606 void setSelfOrAncestorHasDirAutoAttribute(bool v) {
2612 SET_VAR(m_rareInheritedData, m_selfOrAncestorHasDirAutoAttribute, v); 2607 SET_VAR(m_rareInheritedData, m_selfOrAncestorHasDirAutoAttribute, v);
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3902 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); 3897 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1);
3903 } 3898 }
3904 3899
3905 inline bool ComputedStyle::hasPseudoElementStyle() const { 3900 inline bool ComputedStyle::hasPseudoElementStyle() const {
3906 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 3901 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
3907 } 3902 }
3908 3903
3909 } // namespace blink 3904 } // namespace blink
3910 3905
3911 #endif // ComputedStyle_h 3906 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698