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

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

Issue 1812763002: Pseudo and non pseudo elements should return correct computed content value (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 static float initialShapeImageThreshold() { return 0; } 1597 static float initialShapeImageThreshold() { return 0; }
1598 1598
1599 bool hasContent() const { return contentData(); } 1599 bool hasContent() const { return contentData(); }
1600 ContentData* contentData() const { return rareNonInheritedData->m_content.ge t(); } 1600 ContentData* contentData() const { return rareNonInheritedData->m_content.ge t(); }
1601 bool contentDataEquivalent(const ComputedStyle* otherStyle) const { return c onst_cast<ComputedStyle*>(this)->rareNonInheritedData->contentDataEquivalent(*co nst_cast<ComputedStyle*>(otherStyle)->rareNonInheritedData); } 1601 bool contentDataEquivalent(const ComputedStyle* otherStyle) const { return c onst_cast<ComputedStyle*>(this)->rareNonInheritedData->contentDataEquivalent(*co nst_cast<ComputedStyle*>(otherStyle)->rareNonInheritedData); }
1602 void clearContent(); 1602 void clearContent();
1603 void setContent(const String&, bool add = false); 1603 void setContent(const String&, bool add = false);
1604 void setContent(PassRefPtrWillBeRawPtr<StyleImage>, bool add = false); 1604 void setContent(PassRefPtrWillBeRawPtr<StyleImage>, bool add = false);
1605 void setContent(PassOwnPtr<CounterContent>, bool add = false); 1605 void setContent(PassOwnPtr<CounterContent>, bool add = false);
1606 void setContent(QuoteType, bool add = false); 1606 void setContent(QuoteType, bool add = false);
1607 void setContent(ElementContent, bool add = false);
1607 1608
1608 const CounterDirectiveMap* counterDirectives() const; 1609 const CounterDirectiveMap* counterDirectives() const;
1609 CounterDirectiveMap& accessCounterDirectives(); 1610 CounterDirectiveMap& accessCounterDirectives();
1610 const CounterDirectives getCounterDirectives(const AtomicString& identifier) const; 1611 const CounterDirectives getCounterDirectives(const AtomicString& identifier) const;
1611 void clearIncrementDirectives(); 1612 void clearIncrementDirectives();
1612 void clearResetDirectives(); 1613 void clearResetDirectives();
1613 1614
1614 QuotesData* quotes() const { return rareInheritedData->quotes.get(); } 1615 QuotesData* quotes() const { return rareInheritedData->quotes.get(); }
1615 void setQuotes(PassRefPtr<QuotesData>); 1616 void setQuotes(PassRefPtr<QuotesData>);
1616 1617
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2051 } 2052 }
2052 2053
2053 inline bool ComputedStyle::hasPseudoElementStyle() const 2054 inline bool ComputedStyle::hasPseudoElementStyle() const
2054 { 2055 {
2055 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2056 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2056 } 2057 }
2057 2058
2058 } // namespace blink 2059 } // namespace blink
2059 2060
2060 #endif // ComputedStyle_h 2061 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698