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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 enum class DeleteDirection { | 56 enum class DeleteDirection { |
57 Forward, | 57 Forward, |
58 Backward, | 58 Backward, |
59 }; | 59 }; |
60 | 60 |
61 class Document; | 61 class Document; |
62 class Element; | 62 class Element; |
63 class HTMLElement; | 63 class HTMLElement; |
64 class HTMLSpanElement; | 64 class HTMLSpanElement; |
65 class Node; | 65 class Node; |
66 class Range; | |
67 | 66 |
68 // This file contains a set of helper functions used by the editing commands | 67 // This file contains a set of helper functions used by the editing commands |
69 | 68 |
| 69 bool needsLayoutTreeUpdate(const Node&); |
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". | 77 // Returns true if |node| has "user-select:contain". |
78 bool isUserSelectContain(const Node& /* node */); | 78 bool isUserSelectContain(const Node& /* node */); |
79 | 79 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // invalid nodes to <table> elements. | 178 // invalid nodes to <table> elements. |
179 bool isDisplayInsideTable(const Node*); | 179 bool isDisplayInsideTable(const Node*); |
180 bool isInline(const Node*); | 180 bool isInline(const Node*); |
181 bool isTableCell(const Node*); | 181 bool isTableCell(const Node*); |
182 bool isEmptyTableCell(const Node*); | 182 bool isEmptyTableCell(const Node*); |
183 bool isTableStructureNode(const Node*); | 183 bool isTableStructureNode(const Node*); |
184 bool isHTMLListElement(Node*); | 184 bool isHTMLListElement(Node*); |
185 bool isListItem(const Node*); | 185 bool isListItem(const Node*); |
186 bool isPresentationalHTMLElement(const Node*); | 186 bool isPresentationalHTMLElement(const Node*); |
187 bool isNodeRendered(const Node&); | 187 bool isNodeRendered(const Node&); |
188 bool isNodeVisiblyContainedWithin(Node&, const Range&); | |
189 bool isRenderedAsNonInlineTableImageOrHR(const Node*); | 188 bool isRenderedAsNonInlineTableImageOrHR(const Node*); |
190 // Returns true if specified nodes are elements, have identical tag names, | 189 // Returns true if specified nodes are elements, have identical tag names, |
191 // have identical attributes, and are editable. | 190 // have identical attributes, and are editable. |
192 CORE_EXPORT bool areIdenticalElements(const Node&, const Node&); | 191 CORE_EXPORT bool areIdenticalElements(const Node&, const Node&); |
193 bool isNonTableCellHTMLBlockElement(const Node*); | 192 bool isNonTableCellHTMLBlockElement(const Node*); |
194 bool isBlockFlowElement(const Node&); | 193 bool isBlockFlowElement(const Node&); |
195 EUserSelect usedValueOfUserSelect(const Node&); | 194 EUserSelect usedValueOfUserSelect(const Node&); |
196 bool isInPasswordField(const Position&); | 195 bool isInPasswordField(const Position&); |
197 bool isTextSecurityNode(const Node*); | 196 bool isTextSecurityNode(const Node*); |
198 CORE_EXPORT TextDirection directionOfEnclosingBlock(const Position&); | 197 CORE_EXPORT TextDirection directionOfEnclosingBlock(const Position&); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, | 432 DispatchEventResult dispatchBeforeInputDataTransfer(Node*, |
434 InputEvent::InputType, | 433 InputEvent::InputType, |
435 DataTransfer*); | 434 DataTransfer*); |
436 | 435 |
437 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, | 436 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, |
438 TextGranularity); | 437 TextGranularity); |
439 | 438 |
440 } // namespace blink | 439 } // namespace blink |
441 | 440 |
442 #endif | 441 #endif |
OLD | NEW |