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

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

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland 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
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {# 2 {#
3 This file is for property handlers which use the templating engine to 3 This file is for property handlers which use the templating engine to
4 reduce (handwritten) code duplication. 4 reduce (handwritten) code duplication.
5 5
6 The `properties' dict can be used to access a property's parameters in 6 The `properties' dict can be used to access a property's parameters in
7 jinja2 templates (i.e. setter, getter, initial, type_name) 7 jinja2 templates (i.e. setter, getter, initial, type_name)
8 #} 8 #}
9 #include "config.h" 9 #include "config.h"
10 #include "StyleBuilderFunctions.h" 10 #include "StyleBuilderFunctions.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 currChild = currChild->next(); 409 currChild = currChild->next();
410 } 410 }
411 while (currChild) { 411 while (currChild) {
412 /* Reset all remaining layers to not have the property set. */ 412 /* Reset all remaining layers to not have the property set. */
413 currChild->clear{{fill_type}}(); 413 currChild->clear{{fill_type}}();
414 currChild = currChild->next(); 414 currChild = currChild->next();
415 } 415 }
416 } 416 }
417 {% endmacro %} 417 {% endmacro %}
418 {{apply_fill_layer('CSSPropertyBackgroundAttachment', 'Attachment')}} 418 {{apply_fill_layer('CSSPropertyBackgroundAttachment', 'Attachment')}}
419 {{apply_fill_layer('CSSPropertyBackgroundBlendMode', 'BlendMode')}}
420 {{apply_fill_layer('CSSPropertyBackgroundClip', 'Clip')}} 419 {{apply_fill_layer('CSSPropertyBackgroundClip', 'Clip')}}
421 {{apply_fill_layer('CSSPropertyBackgroundImage', 'Image')}} 420 {{apply_fill_layer('CSSPropertyBackgroundImage', 'Image')}}
422 {{apply_fill_layer('CSSPropertyBackgroundOrigin', 'Origin')}} 421 {{apply_fill_layer('CSSPropertyBackgroundOrigin', 'Origin')}}
423 {{apply_fill_layer('CSSPropertyBackgroundPositionX', 'XPosition')}} 422 {{apply_fill_layer('CSSPropertyBackgroundPositionX', 'XPosition')}}
424 {{apply_fill_layer('CSSPropertyBackgroundPositionY', 'YPosition')}} 423 {{apply_fill_layer('CSSPropertyBackgroundPositionY', 'YPosition')}}
425 {{apply_fill_layer('CSSPropertyBackgroundRepeatX', 'RepeatX')}} 424 {{apply_fill_layer('CSSPropertyBackgroundRepeatX', 'RepeatX')}}
426 {{apply_fill_layer('CSSPropertyBackgroundRepeatY', 'RepeatY')}} 425 {{apply_fill_layer('CSSPropertyBackgroundRepeatY', 'RepeatY')}}
427 {{apply_fill_layer('CSSPropertyBackgroundSize', 'Size')}} 426 {{apply_fill_layer('CSSPropertyBackgroundSize', 'Size')}}
428 {{apply_fill_layer('CSSPropertyMaskSourceType', 'MaskSourceType')}} 427 {{apply_fill_layer('CSSPropertyMaskSourceType', 'MaskSourceType')}}
429 {{apply_fill_layer('CSSPropertyWebkitBackgroundComposite', 'Composite')}} 428 {{apply_fill_layer('CSSPropertyWebkitBackgroundComposite', 'Composite')}}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second ()); 473 state.style()->set{{alignment_type}}OverflowAlignment(*pairValue->second ());
475 } else { 474 } else {
476 state.style()->set{{alignment_type}}(*primitiveValue); 475 state.style()->set{{alignment_type}}(*primitiveValue);
477 } 476 }
478 } 477 }
479 {% endmacro %} 478 {% endmacro %}
480 {{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}} 479 {{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}}
481 {{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}} 480 {{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}}
482 481
483 } // namespace blink 482 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp ('k') | sky/engine/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698