• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/platform/graphics/

Lines Matching refs:width

43 FloatRoundedRect::FloatRoundedRect(float x, float y, float width, float height)
44 : m_rect(x, y, width, height)
77 if (!m_topLeft.width() || !m_topLeft.height())
80 if (!m_topRight.width() || !m_topRight.height())
83 if (!m_bottomLeft.width() || !m_bottomLeft.height())
86 if (!m_bottomRight.width() || !m_bottomRight.height())
92 if (m_topLeft.width() > 0 && m_topLeft.height() > 0) {
93 m_topLeft.setWidth(std::max<float>(0, m_topLeft.width() + leftWidth));
96 if (m_topRight.width() > 0 && m_topRight.height() > 0) {
97 m_topRight.setWidth(std::max<float>(0, m_topRight.width() + rightWidth));
100 if (m_bottomLeft.width() > 0 && m_bottomLeft.height() > 0) {
101 m_bottomLeft.setWidth(std::max<float>(0, m_bottomLeft.width() + leftWidth));
104 if (m_bottomRight.width() > 0 && m_bottomRight.height() > 0) {
105 m_bottomRight.setWidth(std::max<float>(0, m_bottomRight.width() + rightWidth));
113 return cornerRect.width() * sqrt(1 - (y * y) / (cornerRect.height() * cornerRect.height()));
152 return m_radii.topLeft().width() >= 0 && m_radii.topLeft().height() >= 0
153 && m_radii.bottomLeft().width() >= 0 && m_radii.bottomLeft().height() >= 0
154 && m_radii.topRight().width() >= 0 && m_radii.topRight().height() >= 0
155 && m_radii.bottomRight().width() >= 0 && m_radii.bottomRight().height() >= 0
156 && m_radii.topLeft().width() + m_radii.topRight().width() <= m_rect.width()
157 && m_radii.bottomLeft().width() + m_radii.bottomRight().width() <= m_rect.width()
169 if (m_rect.width() < m_rect.height())
170 factor = old.width() ? m_rect.width() / old.width() : 0;
179 float maxRadiusWidth = std::max(m_radii.topLeft().width() + m_radii.topRight().width(), m_radii.bottomLeft().width() + m_radii.bottomRight().width());
186 float widthRatio = m_rect.width() / maxRadiusWidth;