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

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

Issue 2310823002: Skeleton implementation of CSS Properties and Values API (Closed)
Patch Set: fix stylevardata copy ctor Created 4 years, 3 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 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 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 void clearResetDirectives(); 1753 void clearResetDirectives();
1754 1754
1755 // Variables. 1755 // Variables.
1756 static StyleVariableData* initialVariables() { return nullptr; } 1756 static StyleVariableData* initialVariables() { return nullptr; }
1757 StyleVariableData* variables() const; 1757 StyleVariableData* variables() const;
1758 void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>); 1758 void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>);
1759 void removeVariable(const AtomicString&); 1759 void removeVariable(const AtomicString&);
1760 void setHasVariableReferenceFromNonInheritedProperty() { m_nonInheritedData. m_variableReference = true; } 1760 void setHasVariableReferenceFromNonInheritedProperty() { m_nonInheritedData. m_variableReference = true; }
1761 bool hasVariableReferenceFromNonInheritedProperty() const { return m_nonInhe ritedData.m_variableReference; } 1761 bool hasVariableReferenceFromNonInheritedProperty() const { return m_nonInhe ritedData.m_variableReference; }
1762 1762
1763 // Call these after setting the CSSVariableData
1764 void setRegisteredInheritedProperty(const AtomicString&, const CSSValue*);
1765
1763 // Animations. 1766 // Animations.
1764 CSSAnimationData& accessAnimations(); 1767 CSSAnimationData& accessAnimations();
1765 const CSSAnimationData* animations() const { return m_rareNonInheritedData-> m_animations.get(); } 1768 const CSSAnimationData* animations() const { return m_rareNonInheritedData-> m_animations.get(); }
1766 1769
1767 // Transitions. 1770 // Transitions.
1768 const CSSTransitionData* transitions() const { return m_rareNonInheritedData ->m_transitions.get(); } 1771 const CSSTransitionData* transitions() const { return m_rareNonInheritedData ->m_transitions.get(); }
1769 CSSTransitionData& accessTransitions(); 1772 CSSTransitionData& accessTransitions();
1770 1773
1771 // Callback selectors. 1774 // Callback selectors.
1772 const Vector<String>& callbackSelectors() const { return m_rareNonInheritedD ata->m_callbackSelectors; } 1775 const Vector<String>& callbackSelectors() const { return m_rareNonInheritedD ata->m_callbackSelectors; }
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 } 2616 }
2614 2617
2615 inline bool ComputedStyle::hasPseudoElementStyle() const 2618 inline bool ComputedStyle::hasPseudoElementStyle() const
2616 { 2619 {
2617 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2620 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2618 } 2621 }
2619 2622
2620 } // namespace blink 2623 } // namespace blink
2621 2624
2622 #endif // ComputedStyle_h 2625 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleChangeReason.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698