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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl

Issue 2913233003: Move fixed point constants from ComputedStyleConstants to BorderValue. (Closed)
Patch Set: Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/BorderValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
index 8ff887796f48521c80c2a77c0fdf1c0781e049c6..d5f82f71f2b0b9497f4e4822a417619350b43478 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
@@ -220,12 +220,6 @@ class CORE_EXPORT ComputedStyleBase {
DataRef<{{subgroup.type_name}}> {{subgroup.member_name}};
{% endfor %}
- static unsigned WidthToFixedPoint(float width) {
- DCHECK_GE(width, 0);
- return static_cast<unsigned>(std::min<float>(width, kMaxForBorderWidth) *
- kBorderWidthDenominator);
- }
-
private:
{% for field in computed_style.fields %}
{{declare_storage(field)}}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/BorderValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698