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

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

Issue 2665603002: Change setIsLink to conform with other nonproperty setters. (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/css/resolver/StyleResolver.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 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 } 2582 }
2583 2583
2584 bool hasCompositorProxy() const { 2584 bool hasCompositorProxy() const {
2585 return m_rareNonInheritedData->m_hasCompositorProxy; 2585 return m_rareNonInheritedData->m_hasCompositorProxy;
2586 } 2586 }
2587 void setHasCompositorProxy(bool b) { 2587 void setHasCompositorProxy(bool b) {
2588 SET_VAR(m_rareNonInheritedData, m_hasCompositorProxy, b); 2588 SET_VAR(m_rareNonInheritedData, m_hasCompositorProxy, b);
2589 } 2589 }
2590 2590
2591 bool isLink() const { return m_nonInheritedData.m_isLink; } 2591 bool isLink() const { return m_nonInheritedData.m_isLink; }
2592 void setIsLink(bool b) { m_nonInheritedData.m_isLink = b; } 2592 void setIsLink() { m_nonInheritedData.m_isLink = true; }
2593 2593
2594 EInsideLink insideLink() const { 2594 EInsideLink insideLink() const {
2595 return static_cast<EInsideLink>(m_inheritedData.m_insideLink); 2595 return static_cast<EInsideLink>(m_inheritedData.m_insideLink);
2596 } 2596 }
2597 void setInsideLink(EInsideLink insideLink) { 2597 void setInsideLink(EInsideLink insideLink) {
2598 m_inheritedData.m_insideLink = static_cast<unsigned>(insideLink); 2598 m_inheritedData.m_insideLink = static_cast<unsigned>(insideLink);
2599 } 2599 }
2600 2600
2601 bool hasExplicitlyInheritedProperties() const { 2601 bool hasExplicitlyInheritedProperties() const {
2602 return m_nonInheritedData.m_explicitInheritance; 2602 return m_nonInheritedData.m_explicitInheritance;
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
3944 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); 3944 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1);
3945 } 3945 }
3946 3946
3947 inline bool ComputedStyle::hasPseudoElementStyle() const { 3947 inline bool ComputedStyle::hasPseudoElementStyle() const {
3948 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 3948 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
3949 } 3949 }
3950 3950
3951 } // namespace blink 3951 } // namespace blink
3952 3952
3953 #endif // ComputedStyle_h 3953 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698