|
@@ -31,11 +31,17 @@
|
|
|
|
|
|
namespace Web {
|
|
namespace Web {
|
|
|
|
|
|
|
|
+class InitialValues {
|
|
|
|
+public:
|
|
|
|
+ static CSS::WhiteSpace white_space() { return CSS::WhiteSpace::Normal; }
|
|
|
|
+};
|
|
|
|
+
|
|
class LayoutStyle {
|
|
class LayoutStyle {
|
|
public:
|
|
public:
|
|
Optional<int> z_index() const { return m_z_index; }
|
|
Optional<int> z_index() const { return m_z_index; }
|
|
CSS::TextAlign text_align() const { return m_text_align; }
|
|
CSS::TextAlign text_align() const { return m_text_align; }
|
|
CSS::Position position() const { return m_position; }
|
|
CSS::Position position() const { return m_position; }
|
|
|
|
+ CSS::WhiteSpace white_space() const { return m_white_space; }
|
|
const Length& width() const { return m_width; }
|
|
const Length& width() const { return m_width; }
|
|
const Length& min_width() const { return m_min_width; }
|
|
const Length& min_width() const { return m_min_width; }
|
|
const Length& max_width() const { return m_max_width; }
|
|
const Length& max_width() const { return m_max_width; }
|
|
@@ -47,6 +53,7 @@ protected:
|
|
Optional<int> m_z_index;
|
|
Optional<int> m_z_index;
|
|
CSS::TextAlign m_text_align;
|
|
CSS::TextAlign m_text_align;
|
|
CSS::Position m_position;
|
|
CSS::Position m_position;
|
|
|
|
+ CSS::WhiteSpace m_white_space { InitialValues::white_space() };
|
|
Length m_width;
|
|
Length m_width;
|
|
Length m_min_width;
|
|
Length m_min_width;
|
|
Length m_max_width;
|
|
Length m_max_width;
|
|
@@ -63,6 +70,7 @@ public:
|
|
void set_z_index(Optional<int> value) { m_z_index = value; }
|
|
void set_z_index(Optional<int> value) { m_z_index = value; }
|
|
void set_text_align(CSS::TextAlign text_align) { m_text_align = text_align; }
|
|
void set_text_align(CSS::TextAlign text_align) { m_text_align = text_align; }
|
|
void set_position(CSS::Position position) { m_position = position; }
|
|
void set_position(CSS::Position position) { m_position = position; }
|
|
|
|
+ void set_white_space(CSS::WhiteSpace value) { m_white_space = value; }
|
|
void set_width(const Length& width) { m_width = width; }
|
|
void set_width(const Length& width) { m_width = width; }
|
|
void set_min_width(const Length& width) { m_min_width = width; }
|
|
void set_min_width(const Length& width) { m_min_width = width; }
|
|
void set_max_width(const Length& width) { m_max_width = width; }
|
|
void set_max_width(const Length& width) { m_max_width = width; }
|