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

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

Issue 2161683002: Add LayoutLocale class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test stability Created 4 years, 5 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 class FilterOperations; 100 class FilterOperations;
101 101
102 class AppliedTextDecoration; 102 class AppliedTextDecoration;
103 class BorderData; 103 class BorderData;
104 struct BorderEdge; 104 struct BorderEdge;
105 class CSSAnimationData; 105 class CSSAnimationData;
106 class CSSTransitionData; 106 class CSSTransitionData;
107 class CSSVariableData; 107 class CSSVariableData;
108 class Font; 108 class Font;
109 class FontMetrics; 109 class FontMetrics;
110 class Hyphenation;
110 class RotateTransformOperation; 111 class RotateTransformOperation;
111 class ScaleTransformOperation; 112 class ScaleTransformOperation;
112 class ShadowList; 113 class ShadowList;
113 class ShapeValue; 114 class ShapeValue;
114 class StyleImage; 115 class StyleImage;
115 class StyleInheritedData; 116 class StyleInheritedData;
116 class StylePath; 117 class StylePath;
117 class StyleResolver; 118 class StyleResolver;
118 class TransformationMatrix; 119 class TransformationMatrix;
119 class TranslateTransformOperation; 120 class TranslateTransformOperation;
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 EUserSelect userSelect() const { return static_cast<EUserSelect>(m_rareInher itedData->userSelect); } 882 EUserSelect userSelect() const { return static_cast<EUserSelect>(m_rareInher itedData->userSelect); }
882 TextOverflow getTextOverflow() const { return static_cast<TextOverflow>(m_ra reNonInheritedData->textOverflow); } 883 TextOverflow getTextOverflow() const { return static_cast<TextOverflow>(m_ra reNonInheritedData->textOverflow); }
883 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol lapse>(m_rareNonInheritedData->marginBeforeCollapse); } 884 EMarginCollapse marginBeforeCollapse() const { return static_cast<EMarginCol lapse>(m_rareNonInheritedData->marginBeforeCollapse); }
884 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl apse>(m_rareNonInheritedData->marginAfterCollapse); } 885 EMarginCollapse marginAfterCollapse() const { return static_cast<EMarginColl apse>(m_rareNonInheritedData->marginAfterCollapse); }
885 EWordBreak wordBreak() const { return static_cast<EWordBreak>(m_rareInherite dData->wordBreak); } 886 EWordBreak wordBreak() const { return static_cast<EWordBreak>(m_rareInherite dData->wordBreak); }
886 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(m_rar eInheritedData->overflowWrap); } 887 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(m_rar eInheritedData->overflowWrap); }
887 LineBreak getLineBreak() const { return static_cast<LineBreak>(m_rareInherit edData->lineBreak); } 888 LineBreak getLineBreak() const { return static_cast<LineBreak>(m_rareInherit edData->lineBreak); }
888 const AtomicString& highlight() const { return m_rareInheritedData->highligh t; } 889 const AtomicString& highlight() const { return m_rareInheritedData->highligh t; }
889 Hyphens getHyphens() const { return static_cast<Hyphens>(m_rareInheritedData ->hyphens); } 890 Hyphens getHyphens() const { return static_cast<Hyphens>(m_rareInheritedData ->hyphens); }
890 const AtomicString& hyphenationString() const { return m_rareInheritedData-> hyphenationString; } 891 const AtomicString& hyphenationString() const { return m_rareInheritedData-> hyphenationString; }
891 const AtomicString& locale() const { return getFontDescription().locale(fals e); } 892 const AtomicString& locale() const { return LayoutLocale::localeString(getFo ntDescription().locale()); }
892 EResize resize() const { return static_cast<EResize>(m_rareNonInheritedData- >m_resize); } 893 EResize resize() const { return static_cast<EResize>(m_rareNonInheritedData- >m_resize); }
893 bool hasInlinePaginationAxis() const 894 bool hasInlinePaginationAxis() const
894 { 895 {
895 // If the pagination axis is parallel with the writing mode inline axis, columns may be laid 896 // If the pagination axis is parallel with the writing mode inline axis, columns may be laid
896 // out along the inline axis, just like for regular multicol. Otherwise, we need to lay out 897 // out along the inline axis, just like for regular multicol. Otherwise, we need to lay out
897 // along the block axis. 898 // along the block axis.
898 if (isOverflowPaged()) 899 if (isOverflowPaged())
899 return (overflowY() == OverflowPagedX) == isHorizontalWritingMode(); 900 return (overflowY() == OverflowPagedX) == isHorizontalWritingMode();
900 return false; 901 return false;
901 } 902 }
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 1616
1616 const CounterDirectiveMap* counterDirectives() const; 1617 const CounterDirectiveMap* counterDirectives() const;
1617 CounterDirectiveMap& accessCounterDirectives(); 1618 CounterDirectiveMap& accessCounterDirectives();
1618 const CounterDirectives getCounterDirectives(const AtomicString& identifier) const; 1619 const CounterDirectives getCounterDirectives(const AtomicString& identifier) const;
1619 void clearIncrementDirectives(); 1620 void clearIncrementDirectives();
1620 void clearResetDirectives(); 1621 void clearResetDirectives();
1621 1622
1622 QuotesData* quotes() const { return m_rareInheritedData->quotes.get(); } 1623 QuotesData* quotes() const { return m_rareInheritedData->quotes.get(); }
1623 void setQuotes(PassRefPtr<QuotesData>); 1624 void setQuotes(PassRefPtr<QuotesData>);
1624 1625
1626 Hyphenation* getHyphenation() const;
1625 const AtomicString& hyphenString() const; 1627 const AtomicString& hyphenString() const;
1626 1628
1627 bool inheritedEqual(const ComputedStyle&) const; 1629 bool inheritedEqual(const ComputedStyle&) const;
1628 bool nonInheritedEqual(const ComputedStyle&) const; 1630 bool nonInheritedEqual(const ComputedStyle&) const;
1629 bool loadingCustomFontsEqual(const ComputedStyle&) const; 1631 bool loadingCustomFontsEqual(const ComputedStyle&) const;
1630 bool inheritedDataShared(const ComputedStyle&) const; 1632 bool inheritedDataShared(const ComputedStyle&) const;
1631 1633
1632 bool isDisplayReplacedType() const { return isDisplayReplacedType(display()) ; } 1634 bool isDisplayReplacedType() const { return isDisplayReplacedType(display()) ; }
1633 bool isDisplayInlineType() const { return isDisplayInlineType(display()); } 1635 bool isDisplayInlineType() const { return isDisplayInlineType(display()); }
1634 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin alDisplay()); } 1636 bool isOriginalDisplayInlineType() const { return isDisplayInlineType(origin alDisplay()); }
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 } 2063 }
2062 2064
2063 inline bool ComputedStyle::hasPseudoElementStyle() const 2065 inline bool ComputedStyle::hasPseudoElementStyle() const
2064 { 2066 {
2065 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2067 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2066 } 2068 }
2067 2069
2068 } // namespace blink 2070 } // namespace blink
2069 2071
2070 #endif // ComputedStyle_h 2072 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698