| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // Set the image (this kicks off the load). | 413 // Set the image (this kicks off the load). |
| 414 CSSPropertyID imageProperty; | 414 CSSPropertyID imageProperty; |
| 415 if (property == CSSPropertyWebkitBorderImage) | 415 if (property == CSSPropertyWebkitBorderImage) |
| 416 imageProperty = CSSPropertyBorderImageSource; | 416 imageProperty = CSSPropertyBorderImageSource; |
| 417 else | 417 else |
| 418 imageProperty = property; | 418 imageProperty = property; |
| 419 | 419 |
| 420 for (unsigned i = 0 ; i < borderImage->length() ; ++i) { | 420 for (unsigned i = 0 ; i < borderImage->length() ; ++i) { |
| 421 CSSValue* current = borderImage->item(i); | 421 CSSValue* current = borderImage->item(i); |
| 422 | 422 |
| 423 if (current->isImageValue() || current->isImageGeneratorValue() || curre
nt->isImageSetValue()) | 423 if (current->isImageGeneratorValue()) |
| 424 image.setImage(styleImage(imageProperty, current)); | 424 image.setImage(styleImage(imageProperty, current)); |
| 425 else if (current->isBorderImageSliceValue()) | 425 else if (current->isBorderImageSliceValue()) |
| 426 mapNinePieceImageSlice(current, image); | 426 mapNinePieceImageSlice(current, image); |
| 427 else if (current->isValueList()) { | 427 else if (current->isValueList()) { |
| 428 CSSValueList* slashList = toCSSValueList(current); | 428 CSSValueList* slashList = toCSSValueList(current); |
| 429 size_t length = slashList->length(); | 429 size_t length = slashList->length(); |
| 430 // Map in the image slices. | 430 // Map in the image slices. |
| 431 if (length && slashList->item(0)->isBorderImageSliceValue()) | 431 if (length && slashList->item(0)->isBorderImageSliceValue()) |
| 432 mapNinePieceImageSlice(slashList->item(0), image); | 432 mapNinePieceImageSlice(slashList->item(0), image); |
| 433 | 433 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 verticalRule = SpaceImageRule; | 560 verticalRule = SpaceImageRule; |
| 561 break; | 561 break; |
| 562 default: // CSSValueRepeat | 562 default: // CSSValueRepeat |
| 563 verticalRule = RepeatImageRule; | 563 verticalRule = RepeatImageRule; |
| 564 break; | 564 break; |
| 565 } | 565 } |
| 566 image.setVerticalRule(verticalRule); | 566 image.setVerticalRule(verticalRule); |
| 567 } | 567 } |
| 568 | 568 |
| 569 }; | 569 }; |
| OLD | NEW |