Add 'storage_only' template to make_computed_style_base.py.

As part of generating ComputedStyle, we would like to move all fields to
from ComputedStyle to ComputedStyleBase. Currently there are several
fields which remain in ComputedStyle because their interfaces are
difficult to generate.

The problem is that the current state of ComputedStyle is undesirable.
For example, the fact that some fields are in ComputedStyle and some are
in ComputedStyleBase can increase memory usage. Although we would like
to generate the interfaces for those fields properly, this will take a
long time. So trying to generate the interfaces for the remaining fields
may block progress.

This patch introduces the 'storage_only' field template, which only
generates the storage part of the field. This allows us to move the
remaining fields to ComputedStyleBase and have handwritten interfaces.

This is temporary. We would like to eventually replace 'storage_only'
with proper templates that generate actual interfaces. But for the
time being, moving all the storage to ComputedStyleBase first is a
priority.

To test this, we move the storage of 'm_emptyState' to be generated in
ComputedStyleBase, but keeping the handwritten interface in
ComputedStyle. This property is hard to generate because it has custom
logic in its setter.

BUG=628043

Review-Url: https://codereview.chromium.org/2742263002
Cr-Commit-Position: refs/heads/master@{#458193}
5 files changed