| 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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2944 } | 2944 } |
| 2945 | 2945 |
| 2946 return document().styleResolver()->pseudoStyleForElement(element, pseudoStyl
eRequest, parentStyle); | 2946 return document().styleResolver()->pseudoStyleForElement(element, pseudoStyl
eRequest, parentStyle); |
| 2947 } | 2947 } |
| 2948 | 2948 |
| 2949 bool RenderObject::hasBlendMode() const | 2949 bool RenderObject::hasBlendMode() const |
| 2950 { | 2950 { |
| 2951 return RuntimeEnabledFeatures::cssCompositingEnabled() && style() && style()
->hasBlendMode(); | 2951 return RuntimeEnabledFeatures::cssCompositingEnabled() && style() && style()
->hasBlendMode(); |
| 2952 } | 2952 } |
| 2953 | 2953 |
| 2954 bool RenderObject::hasIsolation() const |
| 2955 { |
| 2956 return RuntimeEnabledFeatures::cssCompositingEnabled() && style() && style()
->hasIsolation(); |
| 2957 } |
| 2958 |
| 2954 static Color decorationColor(const RenderObject* object, RenderStyle* style) | 2959 static Color decorationColor(const RenderObject* object, RenderStyle* style) |
| 2955 { | 2960 { |
| 2956 Color result; | 2961 Color result; |
| 2957 // Check for text decoration color first. | 2962 // Check for text decoration color first. |
| 2958 result = object->resolveColor(style, CSSPropertyTextDecorationColor); | 2963 result = object->resolveColor(style, CSSPropertyTextDecorationColor); |
| 2959 if (result.isValid()) | 2964 if (result.isValid()) |
| 2960 return result; | 2965 return result; |
| 2961 if (style->textStrokeWidth() > 0) { | 2966 if (style->textStrokeWidth() > 0) { |
| 2962 // Prefer stroke color if possible but not if it's fully transparent. | 2967 // Prefer stroke color if possible but not if it's fully transparent. |
| 2963 result = object->resolveColor(style, CSSPropertyWebkitTextStrokeColor); | 2968 result = object->resolveColor(style, CSSPropertyWebkitTextStrokeColor); |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3367 { | 3372 { |
| 3368 if (object1) { | 3373 if (object1) { |
| 3369 const WebCore::RenderObject* root = object1; | 3374 const WebCore::RenderObject* root = object1; |
| 3370 while (root->parent()) | 3375 while (root->parent()) |
| 3371 root = root->parent(); | 3376 root = root->parent(); |
| 3372 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3377 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3373 } | 3378 } |
| 3374 } | 3379 } |
| 3375 | 3380 |
| 3376 #endif | 3381 #endif |
| OLD | NEW |