ComputedStyle.cpp 525 B

12345678910111213141516171819
  1. #include <LibHTML/Layout/ComputedStyle.h>
  2. ComputedStyle::ComputedStyle()
  3. {
  4. }
  5. ComputedStyle::~ComputedStyle()
  6. {
  7. }
  8. ComputedStyle::PixelBox ComputedStyle::full_margin() const
  9. {
  10. return {
  11. m_margin.top.to_px() + m_border.top.to_px() + m_padding.top.to_px(),
  12. m_margin.right.to_px() + m_border.right.to_px() + m_padding.right.to_px(),
  13. m_margin.bottom.to_px() + m_border.bottom.to_px() + m_padding.bottom.to_px(),
  14. m_margin.left.to_px() + m_border.left.to_px() + m_padding.left.to_px(),
  15. };
  16. }