| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2320 // FIXME: Deal with border-image. Would be great to use border-image as a m
ask. | 2320 // FIXME: Deal with border-image. Would be great to use border-image as a m
ask. |
| 2321 GraphicsContext* context = info.context; | 2321 GraphicsContext* context = info.context; |
| 2322 if (!s->boxShadow()) | 2322 if (!s->boxShadow()) |
| 2323 return; | 2323 return; |
| 2324 | 2324 |
| 2325 RoundedRect border = (shadowStyle == Inset) ? s->getRoundedInnerBorderFor(pa
intRect, includeLogicalLeftEdge, includeLogicalRightEdge) | 2325 RoundedRect border = (shadowStyle == Inset) ? s->getRoundedInnerBorderFor(pa
intRect, includeLogicalLeftEdge, includeLogicalRightEdge) |
| 2326 : s->getRoundedBorderFor(paintRect, includeLogicalLeftEdge, includeLogic
alRightEdge); | 2326 : s->getRoundedBorderFor(paintRect, includeLogicalLeftEdge, includeLogic
alRightEdge); |
| 2327 | 2327 |
| 2328 bool hasBorderRadius = s->hasBorderRadius(); | 2328 bool hasBorderRadius = s->hasBorderRadius(); |
| 2329 bool isHorizontal = s->isHorizontalWritingMode(); | 2329 bool isHorizontal = s->isHorizontalWritingMode(); |
| 2330 bool hasOpaqueBackground = s->visitedDependentColor(CSSPropertyBackgroundCol
or).alpha() == 255; | 2330 bool hasOpaqueBackground = s->colorIncludingFallback(CSSPropertyBackgroundCo
lor).alpha() == 255; |
| 2331 | 2331 |
| 2332 GraphicsContextStateSaver stateSaver(*context, false); | 2332 GraphicsContextStateSaver stateSaver(*context, false); |
| 2333 | 2333 |
| 2334 const ShadowList* shadowList = s->boxShadow(); | 2334 const ShadowList* shadowList = s->boxShadow(); |
| 2335 for (size_t i = shadowList->shadows().size(); i--; ) { | 2335 for (size_t i = shadowList->shadows().size(); i--; ) { |
| 2336 const ShadowData& shadow = shadowList->shadows()[i]; | 2336 const ShadowData& shadow = shadowList->shadows()[i]; |
| 2337 if (shadow.style() != shadowStyle) | 2337 if (shadow.style() != shadowStyle) |
| 2338 continue; | 2338 continue; |
| 2339 | 2339 |
| 2340 FloatSize shadowOffset(shadow.x(), shadow.y()); | 2340 FloatSize shadowOffset(shadow.x(), shadow.y()); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); | 2640 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); |
| 2641 for (RenderObject* child = startChild; child && child != endChild; ) { | 2641 for (RenderObject* child = startChild; child && child != endChild; ) { |
| 2642 // Save our next sibling as moveChildTo will clear it. | 2642 // Save our next sibling as moveChildTo will clear it. |
| 2643 RenderObject* nextSibling = child->nextSibling(); | 2643 RenderObject* nextSibling = child->nextSibling(); |
| 2644 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); | 2644 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); |
| 2645 child = nextSibling; | 2645 child = nextSibling; |
| 2646 } | 2646 } |
| 2647 } | 2647 } |
| 2648 | 2648 |
| 2649 } // namespace blink | 2649 } // namespace blink |
| OLD | NEW |