Lines Matching refs:slices

464             // Map in the image slices.
468 // Map in the border slices.
476 // Set the appropriate rules for stretch/round/repeat of the slices.
482 // We have to preserve the legacy behavior of -webkit-border-image and make the border slices
504 // Set up a length box to represent our image slices.
506 Quad* slices = borderImageSlice->slices();
507 if (slices->top()->isPercentage())
508 box.m_top = Length(slices->top()->getDoubleValue(), Percent);
510 box.m_top = Length(slices->top()->getIntValue(CSSPrimitiveValue::CSS_NUMBER), Fixed);
511 if (slices->bottom()->isPercentage())
512 box.m_bottom = Length(slices->bottom()->getDoubleValue(), Percent);
514 box.m_bottom = Length((int)slices->bottom()->getFloatValue(CSSPrimitiveValue::CSS_NUMBER), Fixed);
515 if (slices->left()->isPercentage())
516 box.m_left = Length(slices->left()->getDoubleValue(), Percent);
518 box.m_left = Length(slices->left()->getIntValue(CSSPrimitiveValue::CSS_NUMBER), Fixed);
519 if (slices->right()->isPercentage())
520 box.m_right = Length(slices->right()->getDoubleValue(), Percent);
522 box.m_right = Length(slices->right()->getIntValue(CSSPrimitiveValue::CSS_NUMBER), Fixed);
545 Quad* slices = toCSSPrimitiveValue(value)->getQuadValue();
547 // Set up a border image length box to represent our image slices.
549 toBorderImageLength(*slices->top(), cssToLengthConversionData()),
550 toBorderImageLength(*slices->right(), cssToLengthConversionData()),
551 toBorderImageLength(*slices->bottom(), cssToLengthConversionData()),
552 toBorderImageLength(*slices->left(), cssToLengthConversionData()));