Home | History | Annotate | Download | only in rendering

Lines Matching full:style

228     if (style() && newStyle) {
230 // Do a repaint with the old style first, e.g., for example if we go from
234 if (!(style()->clip() == newStyle->clip()))
236 } else if (diff == StyleDifferenceRepaint || newStyle->outlineSize() < style()->outlineSize())
244 if (style()->position() != newStyle->position() ||
245 style()->zIndex() != newStyle->zIndex() ||
246 style()->hasAutoZIndex() != newStyle->hasAutoZIndex() ||
247 !(style()->clip() == newStyle->clip()) ||
248 style()->hasClip() != newStyle->hasClip() ||
249 style()->opacity() != newStyle->opacity() ||
250 style()->transform() != newStyle->transform())
259 if (hasLayer() && (style()->hasAutoZIndex() != newStyle->hasAutoZIndex() ||
260 style()->zIndex() != newStyle->zIndex() ||
261 style()->visibility() != newStyle->visibility())) {
263 if (style()->hasAutoZIndex() != newStyle->hasAutoZIndex() || style()->visibility() != newStyle->visibility())
305 setHasBoxDecorations(style()->hasBorder() || style()->hasBackground() || style()->hasAppearance() || style()->boxShadow());
306 setInline(style()->isDisplayInlineType());
307 setRelPositioned(style()->position() == RelativePosition);
316 if (!style()->left().isAuto()) {
318 if (!style()->right().isAuto() && containingBlock()->style()->direction() == RTL)
319 return -style()->right().calcValue(cb->availableWidth());
320 return style()->left().calcValue(cb->availableWidth());
322 if (!style()->right().isAuto()) {
324 return -style()->right().calcValue(cb->availableWidth());
331 if (!style()->top().isAuto())
332 return style()->top().calcValue(containingBlock()->availableHeight());
333 else if (!style()->bottom().isAuto())
334 return -style()->bottom().calcValue(containingBlock()->availableHeight());
409 Length padding = style()->paddingTop();
418 Length padding = style
427 Length padding = style()->paddingLeft();
436 Length padding = style()->paddingRight();
457 if (style()->hasBorderRadius() && (includeLeftEdge || includeRightEdge)) {
466 style()->getBorderRadiiForRect(borderRect, topLeft, topRight, bottomLeft, bottomRight);
528 bool shouldPaintBackgroundImage = bg && bg->canRender(style()->effectiveZoom());
531 // When this style flag is set, change existing background colors and images to a solid white background.
533 // We don't try to avoid loading the background images, because this style flag is only set
537 if (style()->forceBackgroundsToWhite()) {
583 context->fillRect(rect, baseColor, style()->colorSpace());
590 context->fillRect(rect, bgColor, style()->colorSpace());
608 context->drawTiledImage(image, style()->colorSpace(), destRect, phase, tileSize, compositeOp, useLowQualityScaling);
651 w = image->imageSize(this, style()->effectiveZoom()).width() * h / image->imageSize(this, style()->effectiveZoom()).height();
653 h = image->imageSize(this, style()->effectiveZoom()).height() * w / image->imageSize(this, style()->effectiveZoom()).width();
657 w = image->imageSize(this, style()->effectiveZoom()).width();
658 h = image->imageSize(this, style()->effectiveZoom()).height();
675 return image->imageSize(this, style()->effectiveZoom());
769 EVerticalAlign va = style()->verticalAlign();
775 bool checkParent = parent()->isRenderInline() && parent()->style()->verticalAlign() != TOP && parent()->style()->verticalAlign() != BOTTOM;
781 const Font& f = parent()->style
799 vpos -= style()->verticalAlignLength().calcValue(lineHeight(firstLine));
805 bool RenderBoxModelObject::paintNinePieceImage(GraphicsContext* graphicsContext, int tx, int ty, int w, int h, const RenderStyle* style,
815 if (!styleImage->canRender(style->effectiveZoom()))
833 bool fitToBorder = style->borderImage() == ninePieceImage;
835 int leftWidth = fitToBorder ? style->borderLeftWidth() : leftSlice;
836 int topWidth = fitToBorder ? style->borderTopWidth() : topSlice;
837 int rightWidth = fitToBorder ? style->borderRightWidth() : rightSlice;
838 int bottomWidth = fitToBorder ? style->borderBottomWidth() : bottomSlice;
848 ColorSpace colorSpace = style->colorSpace();
918 const RenderStyle* style, bool begin, bool end)
920 if (paintNinePieceImage(graphicsContext, tx, ty, w, h, style, style->borderImage()))
923 const Color& topColor = style->borderTopColor();
924 const Color& bottomColor = style->borderBottomColor();
925 const Color& leftColor = style->borderLeftColor();
926 const Color& rightColor = style->borderRightColor();
928 bool topTransparent = style->borderTopIsTransparent();
929 bool bottomTransparent = style->borderBottomIsTransparent();
930 bool rightTransparent = style->borderRightIsTransparent();
931 bool leftTransparent = style->borderLeftIsTransparent();
933 EBorderStyle topStyle = style->borderTopStyle();
934 EBorderStyle bottomStyle = style->borderBottomStyle();
935 EBorderStyle leftStyle = style->borderLeftStyle();
936 EBorderStyle rightStyle = style->borderRightStyle();
946 if (style->hasBorderRadius()) {
950 style->getBorderRadiiForRect(borderRect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);
991 drawLineForBoxSide(graphicsContext, x, ty, x2, ty + style->borderTopWidth(), BSTop, topColor, style->color(), topStyle,
992 ignore_left ? 0 : style->borderLeftWidth(), ignore_right ? 0 : style->borderRightWidth());
1000 thickness = style->borderTopWidth() * 2;
1005 bool applyLeftInnerClip = (style->borderLeftWidth() < topLeft.width())
1006 && (style->borderTopWidth() < topLeft.height())
1007 && (topStyle != DOUBLE || style->borderTopWidth() > 6);
1011 style->borderTopWidth());
1019 BSTop, topColor, style->color(), topStyle, true);
1026 bool applyRightInnerClip = (style->borderRightWidth() < topRight.width())
1027 && (style->borderTopWidth() < topRight.height())
1028 && (topStyle != DOUBLE || style->borderTopWidth() > 6);
1032 style->borderTopWidth());
1045 BSTop, topColor, style->color(), topStyle, false);
1068 drawLineForBoxSide(graphicsContext, x, ty + h - style->borderBottomWidth(), x2, ty + h, BSBottom, bottomColor, style->color(), bottomStyle,
1069 ignore_left ? 0 : style->borderLeftWidth(), ignore_right ? 0 : style->borderRightWidth());
1072 thickness = style->borderBottomWidth() * 2;
1077 bool applyLeftInnerClip = (style->borderLeftWidth() < bottomLeft.width())
1078 && (style->borderBottomWidth() < bottomLeft.height())
1079 && (bottomStyle != DOUBLE || style->borderBottomWidth() > 6);
1083 style->borderBottomWidth());
1096 style->color(), bottomStyle, true);
1104 bool applyRightInnerClip = (style->borderRightWidth() < bottomRight.width())
1105 && (style->borderBottomWidth() < bottomRight.height())
1106 && (bottomStyle != DOUBLE || style->borderBottomWidth() > 6);
1110 style->borderBottomWidth());
1118 BSBottom, bottomColor, style->color(), bottomStyle, false);
1141 drawLineForBoxSide(graphicsContext, tx, y, tx + style->borderLeftWidth(), y2, BSLeft, leftColor, style->color(), leftStyle,
1142 ignore_top ? 0 : style->borderTopWidth(), ignore_bottom ? 0 : style->borderBottomWidth());
1146 thickness = style->borderLeftWidth() * 2;
1150 bool applyTopInnerClip = (style->borderLeftWidth() < topLeft.width())
1151 && (style->borderTopWidth() < topLeft.height())
1152 && (leftStyle != DOUBLE || style->borderLeftWidth() > 6);
1156 style->borderLeftWidth());
1164 BSLeft, leftColor, style->color(), leftStyle, true);
1171 bool applyBottomInnerClip = (style->borderLeftWidth() < bottomLeft.width())
1172 && (style->borderBottomWidth() < bottomLeft.height())
1173 && (leftStyle != DOUBLE || style->borderLeftWidth() > 6);
1177 style->borderLeftWidth());
1185 BSLeft, leftColor, style->color(), leftStyle, false);
1210 drawLineForBoxSide(graphicsContext, tx + w - style->borderRightWidth(), y, tx + w, y2, BSRight, rightColor, style->color(), rightStyle,
1211 ignore_top ? 0 : style->borderTopWidth(), ignore_bottom ? 0 : style->borderBottomWidth());
1214 thickness = style->borderRightWidth() * 2;
1219 bool applyTopInnerClip = (style->borderRightWidth() < topRight.width())
1220 && (style->borderTopWidth() < topRight.height())
1221 && (rightStyle != DOUBLE || style->borderRightWidth() > 6);
1225 style->borderRightWidth());
1233 BSRight, rightColor, style->color(), rightStyle, true);
1241 bool applyBottomInnerClip = (style->borderRightWidth() < bottomRight.width())
1242 && (style->borderBottomWidth() < bottomRight.height())
1243 && (rightStyle != DOUBLE || style->borderRightWidth() > 6);
1247 style->borderRightWidth());
1255 BSRight, rightColor, style->color(), rightStyle, false);
1314 if (shadow->style != shadowStyle)
1322 if (shadow->style == Normal) {