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

Side by Side Diff: sky/engine/build/scripts/templates/StyleBuilder.cpp.tmpl

Issue 683803006: Remove all writing mode function arguments and remove writing mode from RenderStyle. (Closed) Base URL: git@github.com:domokit/mojo.git@writingmode
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/engine/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 #include "config.h" 4 #include "config.h"
5 #include "core/css/resolver/StyleBuilder.h" 5 #include "core/css/resolver/StyleBuilder.h"
6 6
7 #include "StyleBuilderFunctions.h" 7 #include "StyleBuilderFunctions.h"
8 #include "core/css/CSSProperty.h" 8 #include "core/css/CSSProperty.h"
9 #include "core/css/resolver/StyleResolverState.h" 9 #include "core/css/resolver/StyleResolverState.h"
10 10
(...skipping 15 matching lines...) Expand all
26 StyleBuilderFunctions::applyInherit{{used_property_id}}(state); 26 StyleBuilderFunctions::applyInherit{{used_property_id}}(state);
27 else 27 else
28 StyleBuilderFunctions::applyValue{{used_property_id}}(state, value); 28 StyleBuilderFunctions::applyValue{{used_property_id}}(state, value);
29 return; 29 return;
30 30
31 {% endfor %} 31 {% endfor %}
32 {% for property_id, property in properties.items() if property.direction_awa re %} 32 {% for property_id, property in properties.items() if property.direction_awa re %}
33 case {{property_id}}: 33 case {{property_id}}:
34 {% endfor %} 34 {% endfor %}
35 { 35 {
36 CSSPropertyID resolvedProperty = CSSProperty::resolveDirectionAwarePrope rty(property, state.style()->direction(), state.style()->writingMode()); 36 CSSPropertyID resolvedProperty = CSSProperty::resolveDirectionAwarePrope rty(property, state.style()->direction());
37 ASSERT(resolvedProperty != property); 37 ASSERT(resolvedProperty != property);
38 applyProperty(resolvedProperty, state, value); 38 applyProperty(resolvedProperty, state, value);
39 return; 39 return;
40 } 40 }
41 {% for property_id, property in properties.items() if property.builder_skip %} 41 {% for property_id, property in properties.items() if property.builder_skip %}
42 case {{property_id}}: 42 case {{property_id}}:
43 {% endfor %} 43 {% endfor %}
44 return; 44 return;
45 default: 45 default:
46 ASSERT_NOT_REACHED(); 46 ASSERT_NOT_REACHED();
47 } 47 }
48 } 48 }
49 49
50 } // namespace blink 50 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698