Index: third_party/WebKit/Source/build/scripts/templates/BaseComputedStyle.cpp.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/BaseComputedStyle.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/BaseComputedStyle.cpp.tmpl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6bca219b84b49f75b9afbe6bbd7c613c1b4e4dc4 |
--- /dev/null |
+++ b/third_party/WebKit/Source/build/scripts/templates/BaseComputedStyle.cpp.tmpl |
@@ -0,0 +1,15 @@ |
+{% from 'macros.tmpl' import license %} |
+{{license()}} |
+ |
+#include "core/BaseComputedStyle.h" |
+ |
+namespace blink { |
+ |
+void BaseComputedStyle::inheritFrom(const BaseComputedStyle& inheritParent, IsAtShadowBoundary isAtShadowBoundary) |
+{ |
+ {% for field in fields if field.property['inherited'] %} |
+ {{field.name}} = inheritParent.{{field.name}}; |
+ {% endfor %} |
+} |
+ |
+} // namespace blink |