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

Side by Side Diff: sky/engine/core/css/resolver/StyleBuilderCustom.cpp

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 } 148 }
149 } else { 149 } else {
150 state.style()->setCursor(*toCSSPrimitiveValue(value)); 150 state.style()->setCursor(*toCSSPrimitiveValue(value));
151 } 151 }
152 } 152 }
153 153
154 void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s tate, CSSValue* value) 154 void StyleBuilderFunctions::applyValueCSSPropertyDirection(StyleResolverState& s tate, CSSValue* value)
155 { 155 {
156 state.style()->setDirection(*toCSSPrimitiveValue(value)); 156 state.style()->setDirection(*toCSSPrimitiveValue(value));
157 Element* element = state.element();
158 if (element && element == element->document().documentElement())
159 element->document().setDirectionSetOnDocumentElement(true);
160 } 157 }
161 158
162 void StyleBuilderFunctions::applyInitialCSSPropertyFontFamily(StyleResolverState & state) 159 void StyleBuilderFunctions::applyInitialCSSPropertyFontFamily(StyleResolverState & state)
163 { 160 {
164 state.fontBuilder().setFontFamilyInitial(); 161 state.fontBuilder().setFontFamilyInitial();
165 } 162 }
166 163
167 void StyleBuilderFunctions::applyInheritCSSPropertyFontFamily(StyleResolverState & state) 164 void StyleBuilderFunctions::applyInheritCSSPropertyFontFamily(StyleResolverState & state)
168 { 165 {
169 state.fontBuilder().setFontFamilyInherit(state.parentFontDescription()); 166 state.fontBuilder().setFontFamilyInherit(state.parentFontDescription());
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 state.style()->setPerspective(perspectiveValue); 823 state.style()->setPerspective(perspectiveValue);
827 } 824 }
828 825
829 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation(StyleReso lverState& state, CSSValue* value) 826 void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextOrientation(StyleReso lverState& state, CSSValue* value)
830 { 827 {
831 if (value->isPrimitiveValue()) 828 if (value->isPrimitiveValue())
832 state.setTextOrientation(*toCSSPrimitiveValue(value)); 829 state.setTextOrientation(*toCSSPrimitiveValue(value));
833 } 830 }
834 831
835 } // namespace blink 832 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleAdjuster.cpp ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698