| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 document->focusedElement()->dispatchFocusInEvent(EventTypeNames:
:DOMFocusIn, 0); | 167 document->focusedElement()->dispatchFocusInEvent(EventTypeNames:
:DOMFocusIn, 0); |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 | 171 |
| 172 static inline bool hasCustomFocusLogic(Element* element) | 172 static inline bool hasCustomFocusLogic(Element* element) |
| 173 { | 173 { |
| 174 return element->isHTMLElement() && toHTMLElement(element)->hasCustomFocusLog
ic(); | 174 return element->isHTMLElement() && toHTMLElement(element)->hasCustomFocusLog
ic(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 #if ASSERT_ENABLED | 177 #if ENABLE(ASSERT) |
| 178 static inline bool isNonFocusableShadowHost(Node* node) | 178 static inline bool isNonFocusableShadowHost(Node* node) |
| 179 { | 179 { |
| 180 ASSERT(node); | 180 ASSERT(node); |
| 181 if (!node->isElementNode()) | 181 if (!node->isElementNode()) |
| 182 return false; | 182 return false; |
| 183 Element* element = toElement(node); | 183 Element* element = toElement(node); |
| 184 return !element->isFocusable() && isShadowHost(element) && !hasCustomFocusLo
gic(element); | 184 return !element->isFocusable() && isShadowHost(element) && !hasCustomFocusLo
gic(element); |
| 185 } | 185 } |
| 186 #endif | 186 #endif |
| 187 | 187 |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); | 920 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore b
order */); |
| 921 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(type,
container); | 921 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(type,
container); |
| 922 if (container && container->isDocumentNode()) | 922 if (container && container->isDocumentNode()) |
| 923 toDocument(container)->updateLayoutIgnorePendingStylesheets(); | 923 toDocument(container)->updateLayoutIgnorePendingStylesheets(); |
| 924 } while (!consumed && container); | 924 } while (!consumed && container); |
| 925 | 925 |
| 926 return consumed; | 926 return consumed; |
| 927 } | 927 } |
| 928 | 928 |
| 929 } // namespace WebCore | 929 } // namespace WebCore |
| OLD | NEW |