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

Side by Side Diff: sky/engine/core/css/resolver/StyleResolverState.h

Issue 788883005: Remove REM units. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public: 46 public:
47 StyleResolverState(Document&, Element*, RenderStyle* parentStyle = 0); 47 StyleResolverState(Document&, Element*, RenderStyle* parentStyle = 0);
48 ~StyleResolverState(); 48 ~StyleResolverState();
49 49
50 // In FontFaceSet and CanvasRenderingContext2D, we don't have an element to grab the document from. 50 // In FontFaceSet and CanvasRenderingContext2D, we don't have an element to grab the document from.
51 // This is why we have to store the document separately. 51 // This is why we have to store the document separately.
52 Document& document() const { return *m_document; } 52 Document& document() const { return *m_document; }
53 // These are all just pass-through methods to ElementResolveContext. 53 // These are all just pass-through methods to ElementResolveContext.
54 Element* element() const { return m_elementContext.element(); } 54 Element* element() const { return m_elementContext.element(); }
55 const ContainerNode* parentNode() const { return m_elementContext.parentNode (); } 55 const ContainerNode* parentNode() const { return m_elementContext.parentNode (); }
56 const RenderStyle* rootElementStyle() const { return m_elementContext.rootEl ementStyle(); }
57 56
58 bool distributedToInsertionPoint() const { return m_elementContext.distribut edToInsertionPoint(); } 57 bool distributedToInsertionPoint() const { return m_elementContext.distribut edToInsertionPoint(); }
59 58
60 const ElementResolveContext& elementContext() const { return m_elementContex t; } 59 const ElementResolveContext& elementContext() const { return m_elementContex t; }
61 60
62 void setStyle(PassRefPtr<RenderStyle> style) { m_style = style; m_cssToLengt hConversionData.setStyle(m_style.get()); } 61 void setStyle(PassRefPtr<RenderStyle> style) { m_style = style; m_cssToLengt hConversionData.setStyle(m_style.get()); }
63 const RenderStyle* style() const { return m_style.get(); } 62 const RenderStyle* style() const { return m_style.get(); }
64 RenderStyle* style() { return m_style.get(); } 63 RenderStyle* style() { return m_style.get(); }
65 PassRefPtr<RenderStyle> takeStyle() { return m_style.release(); } 64 PassRefPtr<RenderStyle> takeStyle() { return m_style.release(); }
66 65
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ElementStyleResources m_elementStyleResources; 122 ElementStyleResources m_elementStyleResources;
124 // CSSToStyleMap is a pure-logic class and only contains 123 // CSSToStyleMap is a pure-logic class and only contains
125 // a back-pointer to this object. 124 // a back-pointer to this object.
126 CSSToStyleMap m_styleMap; 125 CSSToStyleMap m_styleMap;
127 Vector<AtomicString> m_contentAttrValues; 126 Vector<AtomicString> m_contentAttrValues;
128 }; 127 };
129 128
130 } // namespace blink 129 } // namespace blink
131 130
132 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVERSTATE_H_ 131 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVERSTATE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleBuilderCustom.cpp ('k') | sky/engine/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698