| 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 3028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3039 | 3039 |
| 3040 if (!node()) | 3040 if (!node()) |
| 3041 return nullptr; | 3041 return nullptr; |
| 3042 | 3042 |
| 3043 Element* element = Traversal<Element>::firstAncestorOrSelf(*node()); | 3043 Element* element = Traversal<Element>::firstAncestorOrSelf(*node()); |
| 3044 if (!element) | 3044 if (!element) |
| 3045 return nullptr; | 3045 return nullptr; |
| 3046 | 3046 |
| 3047 if (pseudoStyleRequest.pseudoId == PseudoIdFirstLineInherited) { | 3047 if (pseudoStyleRequest.pseudoId == PseudoIdFirstLineInherited) { |
| 3048 RefPtr<ComputedStyle> result = | 3048 RefPtr<ComputedStyle> result = |
| 3049 document().ensureStyleResolver().styleForElement(element, parentStyle, | 3049 document().ensureStyleResolver().styleForElement( |
| 3050 DisallowStyleSharing); | 3050 element, parentStyle, parentStyle, DisallowStyleSharing); |
| 3051 result->setStyleType(PseudoIdFirstLineInherited); | 3051 result->setStyleType(PseudoIdFirstLineInherited); |
| 3052 return result.release(); | 3052 return result.release(); |
| 3053 } | 3053 } |
| 3054 | 3054 |
| 3055 return document().ensureStyleResolver().pseudoStyleForElement( | 3055 return document().ensureStyleResolver().pseudoStyleForElement( |
| 3056 element, pseudoStyleRequest, parentStyle); | 3056 element, pseudoStyleRequest, parentStyle, parentStyle); |
| 3057 } | 3057 } |
| 3058 | 3058 |
| 3059 PassRefPtr<ComputedStyle> | 3059 PassRefPtr<ComputedStyle> |
| 3060 LayoutObject::getUncachedPseudoStyleFromParentOrShadowHost() const { | 3060 LayoutObject::getUncachedPseudoStyleFromParentOrShadowHost() const { |
| 3061 if (!node()) | 3061 if (!node()) |
| 3062 return nullptr; | 3062 return nullptr; |
| 3063 | 3063 |
| 3064 if (ShadowRoot* root = node()->containingShadowRoot()) { | 3064 if (ShadowRoot* root = node()->containingShadowRoot()) { |
| 3065 if (root->type() == ShadowRootType::UserAgent) { | 3065 if (root->type() == ShadowRootType::UserAgent) { |
| 3066 if (Element* shadowHost = node()->ownerShadowHost()) { | 3066 if (Element* shadowHost = node()->ownerShadowHost()) { |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3495 const blink::LayoutObject* root = object1; | 3495 const blink::LayoutObject* root = object1; |
| 3496 while (root->parent()) | 3496 while (root->parent()) |
| 3497 root = root->parent(); | 3497 root = root->parent(); |
| 3498 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3498 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3499 } else { | 3499 } else { |
| 3500 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3500 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3501 } | 3501 } |
| 3502 } | 3502 } |
| 3503 | 3503 |
| 3504 #endif | 3504 #endif |
| OLD | NEW |