blob: d3ac50f4ad75b122f84a360c98791882918d8fe8 [file] [log] [blame]
{% from 'macros.tmpl' import license %}
{{license()}}
#include "core/ComputedStyleBase.h"
namespace blink {
void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent, IsAtShadowBoundary isAtShadowBoundary)
{
{% for field in fields if field.property['inherited'] %}
{{field.name}} = inheritParent.{{field.name}};
{% endfor %}
}
void ComputedStyleBase::copyNonInheritedFromCached(const ComputedStyleBase& other)
{
{% for field in fields if not field.property['inherited'] %}
{{field.name}} = other.{{field.name}};
{% endfor %}
}
} // namespace blink