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 2756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2767 return document().ensureStyleResolver().pseudoStyleForElement(element, pseud
oStyleRequest, parentStyle); | 2767 return document().ensureStyleResolver().pseudoStyleForElement(element, pseud
oStyleRequest, parentStyle); |
2768 } | 2768 } |
2769 | 2769 |
2770 PassRefPtr<ComputedStyle> LayoutObject::getUncachedPseudoStyleFromParentOrShadow
Host() const | 2770 PassRefPtr<ComputedStyle> LayoutObject::getUncachedPseudoStyleFromParentOrShadow
Host() const |
2771 { | 2771 { |
2772 if (!node()) | 2772 if (!node()) |
2773 return nullptr; | 2773 return nullptr; |
2774 | 2774 |
2775 if (ShadowRoot* root = node()->containingShadowRoot()) { | 2775 if (ShadowRoot* root = node()->containingShadowRoot()) { |
2776 if (root->type() == ShadowRootType::UserAgent) { | 2776 if (root->type() == ShadowRootType::UserAgent) { |
2777 if (Element* shadowHost = node()->shadowHost()) { | 2777 if (Element* shadowHost = node()->ownerShadowHost()) { |
2778 return shadowHost->layoutObject()->getUncachedPseudoStyle(Pseudo
StyleRequest(PseudoIdSelection)); | 2778 return shadowHost->layoutObject()->getUncachedPseudoStyle(Pseudo
StyleRequest(PseudoIdSelection)); |
2779 } | 2779 } |
2780 } | 2780 } |
2781 } | 2781 } |
2782 | 2782 |
2783 return getUncachedPseudoStyle(PseudoStyleRequest(PseudoIdSelection)); | 2783 return getUncachedPseudoStyle(PseudoStyleRequest(PseudoIdSelection)); |
2784 } | 2784 } |
2785 | 2785 |
2786 void LayoutObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
n& underline, AppliedTextDecoration& overline, AppliedTextDecoration& linethroug
h, bool quirksMode, bool firstlineStyle) | 2786 void LayoutObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
n& underline, AppliedTextDecoration& overline, AppliedTextDecoration& linethroug
h, bool quirksMode, bool firstlineStyle) |
2787 { | 2787 { |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3257 const blink::LayoutObject* root = object1; | 3257 const blink::LayoutObject* root = object1; |
3258 while (root->parent()) | 3258 while (root->parent()) |
3259 root = root->parent(); | 3259 root = root->parent(); |
3260 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3260 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3261 } else { | 3261 } else { |
3262 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3262 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
3263 } | 3263 } |
3264 } | 3264 } |
3265 | 3265 |
3266 #endif | 3266 #endif |
OLD | NEW |