OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Returns true if |node| has "user-select:contain". | 77 // Returns true if |node| has "user-select:contain". |
78 bool isUserSelectContain(const Node& /* node */); | 78 bool isUserSelectContain(const Node& /* node */); |
79 | 79 |
80 CORE_EXPORT bool hasEditableStyle(const Node&); | 80 CORE_EXPORT bool hasEditableStyle(const Node&); |
81 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); | 81 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); |
82 CORE_EXPORT bool isRootEditableElement(const Node&); | 82 CORE_EXPORT bool isRootEditableElement(const Node&); |
83 CORE_EXPORT Element* rootEditableElement(const Node&); | 83 CORE_EXPORT Element* rootEditableElement(const Node&); |
84 Element* rootEditableElementOf(const Position&); | 84 Element* rootEditableElementOf(const Position&); |
85 Element* rootEditableElementOf(const PositionInFlatTree&); | 85 Element* rootEditableElementOf(const PositionInFlatTree&); |
86 Element* rootEditableElementOf(const VisiblePosition&); | 86 Element* rootEditableElementOf(const VisiblePosition&); |
87 ContainerNode* rootEditableElementOrTreeScopeRootNodeOf( | 87 ContainerNode* rootEditableElementOrTreeScopeRootNodeOf(const Position&); |
88 const VisibleSelection&); | |
89 // highestEditableRoot returns the highest editable node. If the | 88 // highestEditableRoot returns the highest editable node. If the |
90 // rootEditableElement of the speicified Position is <body>, this returns the | 89 // rootEditableElement of the speicified Position is <body>, this returns the |
91 // <body>. Otherwise, this searches ancestors for the highest editable node in | 90 // <body>. Otherwise, this searches ancestors for the highest editable node in |
92 // defiance of editing boundaries. This returns a Document if designMode="on" | 91 // defiance of editing boundaries. This returns a Document if designMode="on" |
93 // and the specified Position is not in the <body>. | 92 // and the specified Position is not in the <body>. |
94 CORE_EXPORT ContainerNode* highestEditableRoot( | 93 CORE_EXPORT ContainerNode* highestEditableRoot( |
95 const Position&, | 94 const Position&, |
96 Element* (*)(const Position&) = rootEditableElementOf, | 95 Element* (*)(const Position&) = rootEditableElementOf, |
97 bool (*)(const Node&) = hasEditableStyle); | 96 bool (*)(const Node&) = hasEditableStyle); |
98 ContainerNode* highestEditableRoot(const PositionInFlatTree&); | 97 ContainerNode* highestEditableRoot(const PositionInFlatTree&); |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, | 426 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, |
428 InputEvent::InputType, | 427 InputEvent::InputType, |
429 DataTransfer*); | 428 DataTransfer*); |
430 | 429 |
431 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, | 430 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, |
432 TextGranularity); | 431 TextGranularity); |
433 | 432 |
434 } // namespace blink | 433 } // namespace blink |
435 | 434 |
436 #endif | 435 #endif |
OLD | NEW |