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

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

Issue 2677843002: Change ComputedStyle::setUnique to take bool parameter. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/TextAutosizer.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 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 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after
2541 bool affectedByActive() const { 2541 bool affectedByActive() const {
2542 return m_nonInheritedData.m_affectedByActive; 2542 return m_nonInheritedData.m_affectedByActive;
2543 } 2543 }
2544 void setAffectedByActive() { m_nonInheritedData.m_affectedByActive = true; } 2544 void setAffectedByActive() { m_nonInheritedData.m_affectedByActive = true; }
2545 2545
2546 bool affectedByDrag() const { return m_nonInheritedData.m_affectedByDrag; } 2546 bool affectedByDrag() const { return m_nonInheritedData.m_affectedByDrag; }
2547 void setAffectedByDrag() { m_nonInheritedData.m_affectedByDrag = true; } 2547 void setAffectedByDrag() { m_nonInheritedData.m_affectedByDrag = true; }
2548 2548
2549 bool emptyState() const { return m_nonInheritedData.m_emptyState; } 2549 bool emptyState() const { return m_nonInheritedData.m_emptyState; }
2550 void setEmptyState(bool b) { 2550 void setEmptyState(bool b) {
2551 setUnique(); 2551 setUnique(true);
2552 m_nonInheritedData.m_emptyState = b; 2552 m_nonInheritedData.m_emptyState = b;
2553 } 2553 }
2554 2554
2555 bool hasInlineTransform() const { 2555 bool hasInlineTransform() const {
2556 return m_rareNonInheritedData->m_hasInlineTransform; 2556 return m_rareNonInheritedData->m_hasInlineTransform;
2557 } 2557 }
2558 void setHasInlineTransform(bool b) { 2558 void setHasInlineTransform(bool b) {
2559 SET_VAR(m_rareNonInheritedData, m_hasInlineTransform, b); 2559 SET_VAR(m_rareNonInheritedData, m_hasInlineTransform, b);
2560 } 2560 }
2561 2561
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2614 bool isStackingContext() const { 2614 bool isStackingContext() const {
2615 return m_rareNonInheritedData->m_isStackingContext; 2615 return m_rareNonInheritedData->m_isStackingContext;
2616 } 2616 }
2617 void setIsStackingContext(bool b) { 2617 void setIsStackingContext(bool b) {
2618 SET_VAR(m_rareNonInheritedData, m_isStackingContext, b); 2618 SET_VAR(m_rareNonInheritedData, m_isStackingContext, b);
2619 } 2619 }
2620 2620
2621 // A unique style is one that has matches something that makes it impossible 2621 // A unique style is one that has matches something that makes it impossible
2622 // to share. 2622 // to share.
2623 bool unique() const { return m_nonInheritedData.m_unique; } 2623 bool unique() const { return m_nonInheritedData.m_unique; }
2624 void setUnique() { m_nonInheritedData.m_unique = true; } 2624 void setUnique(bool v) { m_nonInheritedData.m_unique = v; }
2625 2625
2626 float textAutosizingMultiplier() const { 2626 float textAutosizingMultiplier() const {
2627 return m_styleInheritedData->textAutosizingMultiplier; 2627 return m_styleInheritedData->textAutosizingMultiplier;
2628 } 2628 }
2629 void setTextAutosizingMultiplier(float); 2629 void setTextAutosizingMultiplier(float);
2630 2630
2631 bool selfOrAncestorHasDirAutoAttribute() const { 2631 bool selfOrAncestorHasDirAutoAttribute() const {
2632 return m_rareInheritedData->m_selfOrAncestorHasDirAutoAttribute; 2632 return m_rareInheritedData->m_selfOrAncestorHasDirAutoAttribute;
2633 } 2633 }
2634 void setSelfOrAncestorHasDirAutoAttribute(bool v) { 2634 void setSelfOrAncestorHasDirAutoAttribute(bool v) {
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
3925 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); 3925 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1);
3926 } 3926 }
3927 3927
3928 inline bool ComputedStyle::hasPseudoElementStyle() const { 3928 inline bool ComputedStyle::hasPseudoElementStyle() const {
3929 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 3929 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
3930 } 3930 }
3931 3931
3932 } // namespace blink 3932 } // namespace blink
3933 3933
3934 #endif // ComputedStyle_h 3934 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/TextAutosizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698