forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move fully generated StyleBuilderFunction methods to corresponding CS…
…SPropertyAPIs. This is a resubmission of an earlier cl (crrev.com/c/646928), which was reverted because it caused a Chrome Win Build error. The linker error suggest the size of static lib was too large, exceeding win limit. In this cl, we increase split_count from 5 to 10 for all systems. Bug: 751354 Change-Id: I536bf5e8adbdd3da58418e77cbc882432e4b3c7f Reviewed-on: https://chromium-review.googlesource.com/648536 Reviewed-by: meade_UTC10 <meade@chromium.org> Commit-Queue: Jia Meng <jiameng@chromium.org> Cr-Commit-Position: refs/heads/master@{#500221}
- Loading branch information
Showing
10 changed files
with
183 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...d_party/WebKit/Source/build/scripts/core/css/properties/templates/application_macros.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
{% macro set_value(property) %} | ||
{% if property.svg %} | ||
state.Style()->AccessSVGStyle().{{property.setter}} | ||
{%- elif property.font %} | ||
state.GetFontBuilder().{{property.setter}} | ||
{%- else %} | ||
state.Style()->{{property.setter}} | ||
{%- endif %} | ||
{% endmacro %} | ||
|
||
{% macro convert_and_set_value(property) %} | ||
{% if property.converter %} | ||
{{set_value(property)}}(StyleBuilderConverter::{{property.converter}}(state, value)); | ||
{# TODO(sashab): Remove this list from this file. #} | ||
{% elif property.type_name in ['short', 'unsigned short', 'int', 'unsigned int', 'unsigned', 'float', 'LineClampValue'] %} | ||
{{set_value(property)}}(ToCSSPrimitiveValue(value).ConvertTo<{{property.type_name}}>()); | ||
{%- else %} | ||
{{set_value(property)}}(ToCSSIdentifierValue(value).ConvertTo<{{property.type_name}}>()); | ||
{%- endif %} | ||
{% endmacro %} | ||
|
||
{% macro set_is_inherited(property) %} | ||
state.Style()->{{property.is_inherited_setter}} | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters