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

Side by Side Diff: sky/engine/core/rendering/style/StyleRareInheritedData.h

Issue 1070263002: remove CSS quotes property (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights 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 19 matching lines...) Expand all
30 #include "sky/engine/platform/Length.h" 30 #include "sky/engine/platform/Length.h"
31 #include "sky/engine/platform/graphics/Color.h" 31 #include "sky/engine/platform/graphics/Color.h"
32 #include "sky/engine/wtf/PassRefPtr.h" 32 #include "sky/engine/wtf/PassRefPtr.h"
33 #include "sky/engine/wtf/RefCounted.h" 33 #include "sky/engine/wtf/RefCounted.h"
34 #include "sky/engine/wtf/RefVector.h" 34 #include "sky/engine/wtf/RefVector.h"
35 #include "sky/engine/wtf/text/AtomicString.h" 35 #include "sky/engine/wtf/text/AtomicString.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class AppliedTextDecoration; 39 class AppliedTextDecoration;
40 class QuotesData;
41 class ShadowList; 40 class ShadowList;
42 class StyleImage; 41 class StyleImage;
43 42
44 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList; 43 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList;
45 44
46 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop erties. 45 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop erties.
47 // By grouping them together, we save space, and only allocate this object when someone 46 // By grouping them together, we save space, and only allocate this object when someone
48 // actually uses one of these properties. 47 // actually uses one of these properties.
49 class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> { 48 class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> {
50 public: 49 public:
51 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty leRareInheritedData); } 50 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty leRareInheritedData); }
52 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR areInheritedData(*this)); } 51 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR areInheritedData(*this)); }
53 ~StyleRareInheritedData(); 52 ~StyleRareInheritedData();
54 53
55 bool operator==(const StyleRareInheritedData& o) const; 54 bool operator==(const StyleRareInheritedData& o) const;
56 bool operator!=(const StyleRareInheritedData& o) const 55 bool operator!=(const StyleRareInheritedData& o) const
57 { 56 {
58 return !(*this == o); 57 return !(*this == o);
59 } 58 }
60 bool shadowDataEquivalent(const StyleRareInheritedData&) const; 59 bool shadowDataEquivalent(const StyleRareInheritedData&) const;
61 bool quotesDataEquivalent(const StyleRareInheritedData&) const;
62 60
63 StyleColor textStrokeColor() const { return m_textStrokeColorIsCurrentColor ? StyleColor::currentColor() : StyleColor(m_textStrokeColor); } 61 StyleColor textStrokeColor() const { return m_textStrokeColorIsCurrentColor ? StyleColor::currentColor() : StyleColor(m_textStrokeColor); }
64 StyleColor textFillColor() const { return m_textFillColorIsCurrentColor ? St yleColor::currentColor() : StyleColor(m_textFillColor); } 62 StyleColor textFillColor() const { return m_textFillColorIsCurrentColor ? St yleColor::currentColor() : StyleColor(m_textFillColor); }
65 StyleColor textEmphasisColor() const { return m_textEmphasisColorIsCurrentCo lor ? StyleColor::currentColor() : StyleColor(m_textEmphasisColor); } 63 StyleColor textEmphasisColor() const { return m_textEmphasisColorIsCurrentCo lor ? StyleColor::currentColor() : StyleColor(m_textEmphasisColor); }
66 64
67 void setTextStrokeColor(const StyleColor& color) { m_textStrokeColor = color .resolve(Color()); m_textStrokeColorIsCurrentColor = color.isCurrentColor(); } 65 void setTextStrokeColor(const StyleColor& color) { m_textStrokeColor = color .resolve(Color()); m_textStrokeColorIsCurrentColor = color.isCurrentColor(); }
68 void setTextFillColor(const StyleColor& color) { m_textFillColor = color.res olve(Color()); m_textFillColorIsCurrentColor = color.isCurrentColor(); } 66 void setTextFillColor(const StyleColor& color) { m_textFillColor = color.res olve(Color()); m_textFillColorIsCurrentColor = color.isCurrentColor(); }
69 void setTextEmphasisColor(const StyleColor& color) { m_textEmphasisColor = c olor.resolve(Color()); m_textEmphasisColorIsCurrentColor = color.isCurrentColor( ); } 67 void setTextEmphasisColor(const StyleColor& color) { m_textEmphasisColor = c olor.resolve(Color()); m_textEmphasisColorIsCurrentColor = color.isCurrentColor( ); }
70 68
71 Color m_textStrokeColor; 69 Color m_textStrokeColor;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 short widows; 109 short widows;
112 110
113 short hyphenationLimitBefore; 111 short hyphenationLimitBefore;
114 short hyphenationLimitAfter; 112 short hyphenationLimitAfter;
115 short hyphenationLimitLines; 113 short hyphenationLimitLines;
116 AtomicString hyphenationString; 114 AtomicString hyphenationString;
117 115
118 AtomicString locale; 116 AtomicString locale;
119 117
120 AtomicString textEmphasisCustomMark; 118 AtomicString textEmphasisCustomMark;
121 RefPtr<QuotesData> quotes;
122 119
123 unsigned m_tabSize; 120 unsigned m_tabSize;
124 121
125 Color tapHighlightColor; 122 Color tapHighlightColor;
126 123
127 RefPtr<AppliedTextDecorationList> appliedTextDecorations; 124 RefPtr<AppliedTextDecorationList> appliedTextDecorations;
128 125
129 private: 126 private:
130 StyleRareInheritedData(); 127 StyleRareInheritedData();
131 StyleRareInheritedData(const StyleRareInheritedData&); 128 StyleRareInheritedData(const StyleRareInheritedData&);
132 }; 129 };
133 130
134 } // namespace blink 131 } // namespace blink
135 132
136 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERAREINHERITEDDATA_H_ 133 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERAREINHERITEDDATA_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/style/RenderStyle.cpp ('k') | sky/engine/core/rendering/style/StyleRareInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698