| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // This file contains a set of helper functions used by the editing commands | 68 // This file contains a set of helper functions used by the editing commands |
| 69 | 69 |
| 70 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&); | 70 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&); |
| 71 CORE_EXPORT bool needsLayoutTreeUpdate(const PositionInFlatTree&); | 71 CORE_EXPORT bool needsLayoutTreeUpdate(const PositionInFlatTree&); |
| 72 | 72 |
| 73 // ------------------------------------------------------------------------- | 73 // ------------------------------------------------------------------------- |
| 74 // Node | 74 // Node |
| 75 // ------------------------------------------------------------------------- | 75 // ------------------------------------------------------------------------- |
| 76 | 76 |
| 77 // Returns true if |node| has "user-select:contain". |
| 78 bool isUserSelectContain(const Node& /* node */); |
| 79 |
| 77 CORE_EXPORT bool hasEditableStyle(const Node&); | 80 CORE_EXPORT bool hasEditableStyle(const Node&); |
| 78 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); | 81 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); |
| 79 CORE_EXPORT bool isRootEditableElement(const Node&); | 82 CORE_EXPORT bool isRootEditableElement(const Node&); |
| 80 CORE_EXPORT Element* rootEditableElement(const Node&); | 83 CORE_EXPORT Element* rootEditableElement(const Node&); |
| 81 Element* rootEditableElementOf(const Position&); | 84 Element* rootEditableElementOf(const Position&); |
| 82 Element* rootEditableElementOf(const PositionInFlatTree&); | 85 Element* rootEditableElementOf(const PositionInFlatTree&); |
| 83 Element* rootEditableElementOf(const VisiblePosition&); | 86 Element* rootEditableElementOf(const VisiblePosition&); |
| 84 ContainerNode* rootEditableElementOrTreeScopeRootNodeOf( | 87 ContainerNode* rootEditableElementOrTreeScopeRootNodeOf( |
| 85 const VisibleSelection&); | 88 const VisibleSelection&); |
| 86 // highestEditableRoot returns the highest editable node. If the | 89 // highestEditableRoot returns the highest editable node. If the |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, | 426 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, |
| 424 InputEvent::InputType, | 427 InputEvent::InputType, |
| 425 DataTransfer*); | 428 DataTransfer*); |
| 426 | 429 |
| 427 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, | 430 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, |
| 428 TextGranularity); | 431 TextGranularity); |
| 429 | 432 |
| 430 } // namespace blink | 433 } // namespace blink |
| 431 | 434 |
| 432 #endif | 435 #endif |
| OLD | NEW |