Skip to content

Commit 3c3f9a1

Browse files
committed
Add namedColorCount back to source
1 parent 4f51c64 commit 3c3f9a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csscolorparser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const NamedColor namedColors[] = {
110110
{ "yellow", { 255, 255, 0, 1 } }, { "yellowgreen", { 154, 205, 50, 1 } }
111111
};
112112

113+
const size_t namedColorCount = sizeof (namedColors) / sizeof (NamedColor);
114+
113115
template <typename T>
114116
uint8_t clamp_css_byte(T i) { // Clamp to integer 0 .. 255.
115117
i = ::round(i); // Seems to be what Chrome does (vs truncation).

0 commit comments

Comments
 (0)