Changeset 158163 in webkit for trunk/Source/WebCore/rendering/RenderWidget.cpp
- Timestamp:
- Oct 28, 2013, 7:58:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderWidget.cpp
r158097 r158163 189 189 view().frameView().didAddWidgetToRenderTree(*m_widget); 190 190 // If we've already received a layout, apply the calculated space to the 191 // widget immediately, but we have to have really been fully constructed (with a non-null 192 // style pointer). 191 // widget immediately, but we have to have really been fully constructed. 193 192 if (hasInitializedStyle()) { 194 193 if (!needsLayout()) { … … 199 198 } 200 199 201 if (style() ->visibility() != VISIBLE)200 if (style().visibility() != VISIBLE) 202 201 m_widget->hide(); 203 202 else { … … 225 224 RenderReplaced::styleDidChange(diff, oldStyle); 226 225 if (m_widget) { 227 if (style() ->visibility() != VISIBLE)226 if (style().visibility() != VISIBLE) 228 227 m_widget->hide(); 229 228 else … … 293 292 294 293 #if PLATFORM(MAC) 295 if (style() ->highlight() != nullAtom && !paintInfo.context->paintingDisabled())296 paintCustomHighlight(paintOffset, style() ->highlight(), true);294 if (style().highlight() != nullAtom && !paintInfo.context->paintingDisabled()) 295 paintCustomHighlight(paintOffset, style().highlight(), true); 297 296 #endif 298 297 299 if (style() ->hasBorderRadius()) {298 if (style().hasBorderRadius()) { 300 299 LayoutRect borderRect = LayoutRect(adjustedPaintOffset, size()); 301 300 … … 305 304 // Push a clip if we have a border radius, since we want to round the foreground content that gets painted. 306 305 paintInfo.context->save(); 307 RoundedRect roundedInnerRect = style() ->getRoundedInnerBorderFor(borderRect,306 RoundedRect roundedInnerRect = style().getRoundedInnerBorderFor(borderRect, 308 307 paddingTop() + borderTop(), paddingBottom() + borderBottom(), paddingLeft() + borderLeft(), paddingRight() + borderRight(), true, true); 309 308 clipRoundedInnerRect(paintInfo.context, borderRect, roundedInnerRect); … … 313 312 paintContents(paintInfo, paintOffset); 314 313 315 if (style() ->hasBorderRadius())314 if (style().hasBorderRadius()) 316 315 paintInfo.context->restore(); 317 316 … … 319 318 if (isSelected() && !document().printing()) { 320 319 // FIXME: selectionRect() is in absolute, not painting coordinates. 321 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), selectionBackgroundColor(), style() ->colorSpace());320 paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), selectionBackgroundColor(), style().colorSpace()); 322 321 } 323 322
Note:
See TracChangeset
for help on using the changeset viewer.