| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007 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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 { | 1455 { |
| 1456 return createTabSpanElement(document, nullptr); | 1456 return createTabSpanElement(document, nullptr); |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 bool isNodeRendered(const Node& node) | 1459 bool isNodeRendered(const Node& node) |
| 1460 { | 1460 { |
| 1461 LayoutObject* layoutObject = node.layoutObject(); | 1461 LayoutObject* layoutObject = node.layoutObject(); |
| 1462 if (!layoutObject) | 1462 if (!layoutObject) |
| 1463 return false; | 1463 return false; |
| 1464 | 1464 |
| 1465 return layoutObject->style()->visibility() == VISIBLE; | 1465 return layoutObject->style()->visibility() == EVisibility::Visible; |
| 1466 } | 1466 } |
| 1467 | 1467 |
| 1468 // return first preceding DOM position rendered at a different location, or "thi
s" | 1468 // return first preceding DOM position rendered at a different location, or "thi
s" |
| 1469 static Position previousCharacterPosition(const Position& position, TextAffinity
affinity) | 1469 static Position previousCharacterPosition(const Position& position, TextAffinity
affinity) |
| 1470 { | 1470 { |
| 1471 if (position.isNull()) | 1471 if (position.isNull()) |
| 1472 return Position(); | 1472 return Position(); |
| 1473 | 1473 |
| 1474 Element* fromRootEditableElement = rootEditableElement(*position.anchorNode(
)); | 1474 Element* fromRootEditableElement = rootEditableElement(*position.anchorNode(
)); |
| 1475 | 1475 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 return InputType::DeleteWordBackward; | 1888 return InputType::DeleteWordBackward; |
| 1889 if (granularity == LineBoundary) | 1889 if (granularity == LineBoundary) |
| 1890 return InputType::DeleteLineBackward; | 1890 return InputType::DeleteLineBackward; |
| 1891 return InputType::DeleteContentBackward; | 1891 return InputType::DeleteContentBackward; |
| 1892 default: | 1892 default: |
| 1893 return InputType::None; | 1893 return InputType::None; |
| 1894 } | 1894 } |
| 1895 } | 1895 } |
| 1896 | 1896 |
| 1897 } // namespace blink | 1897 } // namespace blink |
| OLD | NEW |