| 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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2296 DCHECK(isUserActionElement()); | 2296 DCHECK(isUserActionElement()); |
| 2297 return document().userActionElements().isHovered(this); | 2297 return document().userActionElements().isHovered(this); |
| 2298 } | 2298 } |
| 2299 | 2299 |
| 2300 bool Node::isUserActionElementFocused() const | 2300 bool Node::isUserActionElementFocused() const |
| 2301 { | 2301 { |
| 2302 DCHECK(isUserActionElement()); | 2302 DCHECK(isUserActionElement()); |
| 2303 return document().userActionElements().isFocused(this); | 2303 return document().userActionElements().isFocused(this); |
| 2304 } | 2304 } |
| 2305 | 2305 |
| 2306 void Node::setCustomElementState(CustomElementState newState) | 2306 void Node::setV0CustomElementState(V0CustomElementState newState) |
| 2307 { | 2307 { |
| 2308 CustomElementState oldState = getCustomElementState(); | 2308 V0CustomElementState oldState = getV0CustomElementState(); |
| 2309 | 2309 |
| 2310 switch (newState) { | 2310 switch (newState) { |
| 2311 case NotCustomElement: | 2311 case V0NotCustomElement: |
| 2312 ASSERT_NOT_REACHED(); // Everything starts in this state | 2312 ASSERT_NOT_REACHED(); // Everything starts in this state |
| 2313 return; | 2313 return; |
| 2314 | 2314 |
| 2315 case WaitingForUpgrade: | 2315 case V0WaitingForUpgrade: |
| 2316 DCHECK_EQ(NotCustomElement, oldState); | 2316 DCHECK_EQ(V0NotCustomElement, oldState); |
| 2317 break; | 2317 break; |
| 2318 | 2318 |
| 2319 case Upgraded: | 2319 case V0Upgraded: |
| 2320 DCHECK_EQ(WaitingForUpgrade, oldState); | 2320 DCHECK_EQ(V0WaitingForUpgrade, oldState); |
| 2321 break; | 2321 break; |
| 2322 } | 2322 } |
| 2323 | 2323 |
| 2324 DCHECK(isHTMLElement() || isSVGElement()); | 2324 DCHECK(isHTMLElement() || isSVGElement()); |
| 2325 setFlag(CustomElementFlag); | 2325 setFlag(V0CustomElementFlag); |
| 2326 setFlag(newState == Upgraded, CustomElementUpgradedFlag); | 2326 setFlag(newState == V0Upgraded, V0CustomElementUpgradedFlag); |
| 2327 | 2327 |
| 2328 if (oldState == NotCustomElement || newState == Upgraded) | 2328 if (oldState == V0NotCustomElement || newState == V0Upgraded) |
| 2329 toElement(this)->pseudoStateChanged(CSSSelector::PseudoUnresolved); | 2329 toElement(this)->pseudoStateChanged(CSSSelector::PseudoUnresolved); |
| 2330 } | 2330 } |
| 2331 | 2331 |
| 2332 void Node::updateAssignmentForInsertedInto(ContainerNode* insertionPoint) | 2332 void Node::updateAssignmentForInsertedInto(ContainerNode* insertionPoint) |
| 2333 { | 2333 { |
| 2334 if (isShadowHost(insertionPoint)) { | 2334 if (isShadowHost(insertionPoint)) { |
| 2335 ShadowRoot* root = insertionPoint->youngestShadowRoot(); | 2335 ShadowRoot* root = insertionPoint->youngestShadowRoot(); |
| 2336 if (root && root->isV1()) | 2336 if (root && root->isV1()) |
| 2337 root->assignV1(); | 2337 root->assignV1(); |
| 2338 } | 2338 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 | 2424 |
| 2425 void showNodePath(const blink::Node* node) | 2425 void showNodePath(const blink::Node* node) |
| 2426 { | 2426 { |
| 2427 if (node) | 2427 if (node) |
| 2428 node->showNodePathForThis(); | 2428 node->showNodePathForThis(); |
| 2429 else | 2429 else |
| 2430 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2430 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2431 } | 2431 } |
| 2432 | 2432 |
| 2433 #endif | 2433 #endif |
| OLD | NEW |