| 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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 3041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3052 | 3052 |
| 3053 if (!node()) | 3053 if (!node()) |
| 3054 return nullptr; | 3054 return nullptr; |
| 3055 | 3055 |
| 3056 Element* element = Traversal<Element>::firstAncestorOrSelf(*node()); | 3056 Element* element = Traversal<Element>::firstAncestorOrSelf(*node()); |
| 3057 if (!element) | 3057 if (!element) |
| 3058 return nullptr; | 3058 return nullptr; |
| 3059 | 3059 |
| 3060 if (pseudoStyleRequest.pseudoId == PseudoIdFirstLineInherited) { | 3060 if (pseudoStyleRequest.pseudoId == PseudoIdFirstLineInherited) { |
| 3061 RefPtr<ComputedStyle> result = | 3061 RefPtr<ComputedStyle> result = |
| 3062 document().ensureStyleResolver().styleForElement(element, parentStyle, | 3062 document().ensureStyleResolver().styleForElement( |
| 3063 DisallowStyleSharing); | 3063 element, parentStyle, parentStyle, DisallowStyleSharing); |
| 3064 result->setStyleType(PseudoIdFirstLineInherited); | 3064 result->setStyleType(PseudoIdFirstLineInherited); |
| 3065 return result.release(); | 3065 return result.release(); |
| 3066 } | 3066 } |
| 3067 | 3067 |
| 3068 return document().ensureStyleResolver().pseudoStyleForElement( | 3068 return document().ensureStyleResolver().pseudoStyleForElement( |
| 3069 element, pseudoStyleRequest, parentStyle); | 3069 element, pseudoStyleRequest, parentStyle, parentStyle); |
| 3070 } | 3070 } |
| 3071 | 3071 |
| 3072 PassRefPtr<ComputedStyle> | 3072 PassRefPtr<ComputedStyle> |
| 3073 LayoutObject::getUncachedPseudoStyleFromParentOrShadowHost() const { | 3073 LayoutObject::getUncachedPseudoStyleFromParentOrShadowHost() const { |
| 3074 if (!node()) | 3074 if (!node()) |
| 3075 return nullptr; | 3075 return nullptr; |
| 3076 | 3076 |
| 3077 if (ShadowRoot* root = node()->containingShadowRoot()) { | 3077 if (ShadowRoot* root = node()->containingShadowRoot()) { |
| 3078 if (root->type() == ShadowRootType::UserAgent) { | 3078 if (root->type() == ShadowRootType::UserAgent) { |
| 3079 if (Element* shadowHost = node()->ownerShadowHost()) { | 3079 if (Element* shadowHost = node()->ownerShadowHost()) { |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3508 const blink::LayoutObject* root = object1; | 3508 const blink::LayoutObject* root = object1; |
| 3509 while (root->parent()) | 3509 while (root->parent()) |
| 3510 root = root->parent(); | 3510 root = root->parent(); |
| 3511 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3511 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3512 } else { | 3512 } else { |
| 3513 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3513 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3514 } | 3514 } |
| 3515 } | 3515 } |
| 3516 | 3516 |
| 3517 #endif | 3517 #endif |
| OLD | NEW |