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

Lines Matching refs:width

51     if (!m_topLeft.width() || !m_topLeft.height())
54 if (!m_topRight.width() || !m_topRight.height())
57 if (!m_bottomLeft.width() || !m_bottomLeft.height())
60 if (!m_bottomRight.width() || !m_bottomRight.height())
66 if (m_topLeft.width() > 0 && m_topLeft.height() > 0) {
67 m_topLeft.setWidth(std::max<LayoutUnit>(0, m_topLeft.width() + leftWidth));
70 if (m_topRight.width() > 0 && m_topRight.height() > 0) {
71 m_topRight.setWidth(std::max<LayoutUnit>(0, m_topRight.width() + rightWidth));
74 if (m_bottomLeft.width() > 0 && m_bottomLeft.height() > 0) {
75 m_bottomLeft.setWidth(std::max<LayoutUnit>(0, m_bottomLeft.width() + leftWidth));
78 if (m_bottomRight.width() > 0 && m_bottomRight.height() > 0) {
79 m_bottomRight.setWidth(std::max<LayoutUnit>(0, m_bottomRight.width() + rightWidth));
91 if (m_rect.width() < m_rect.height())
92 factor = old.width() ? (float)m_rect.width() / old.width() : int(0);
137 RoundedRect::RoundedRect(const LayoutUnit& x, const LayoutUnit& y, const LayoutUnit& width, const LayoutUnit& height)
138 : m_rect(x, y, width, height)
166 return m_radii.topLeft().width() + m_radii.topRight().width() <= m_rect.width()
167 && m_radii.bottomLeft().width() + m_radii.bottomRight().width() <= m_rect.width()
174 int maxRadiusWidth = std::max(m_radii.topLeft().width() + m_radii.topRight().width(), m_radii.bottomLeft().width() + m_radii.bottomRight().width());
181 float widthRatio = static_cast<float>(m_rect.width()) / maxRadiusWidth;
194 FloatRect rect(m_rect.x(), m_rect.y(), topLeft.width(), topLeft.height());
196 FloatPoint center(m_rect.x() + topLeft.width(), m_rect.y() + topLeft.height());
197 FloatSize size(topLeft.width(), topLeft.height());
205 FloatRect rect(m_rect.maxX() - topRight.width(), m_rect.y(), topRight.width(), topRight.height());
207 FloatPoint center(m_rect.maxX() - topRight.width(), m_rect.y() + topRight.height());
208 FloatSize size(topRight.width(), topRight.height());
216 FloatRect rect(m_rect.x(), m_rect.maxY() - bottomLeft.height(), bottomLeft.width(), bottomLeft.height());
218 FloatPoint center(m_rect.x() + bottomLeft.width(), m_rect.maxY() - bottomLeft.height());
219 FloatSize size(bottomLeft.width(), bottomLeft.height());
227 FloatRect rect(m_rect.maxX() - bottomRight.width(), m_rect.maxY() - bottomRight.height(), bottomRight.width(), bottomRight.height());
229 FloatPoint center(m_rect.maxX() - bottomRight.width(), m_rect.maxY() - bottomRight.height());
230 FloatSize size(bottomRight.width(), bottomRight.height());
252 adjustedRadii.scale(pixelSnappedRect.width() / originalRect.width().toFloat(), pixelSnappedRect.height() / originalRect.height().toFloat());