| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 void VisibleSelectionTemplate<Strategy>::adjustSelectionToAvoidCrossingShadowBou
ndaries() | 580 void VisibleSelectionTemplate<Strategy>::adjustSelectionToAvoidCrossingShadowBou
ndaries() |
| 581 { | 581 { |
| 582 if (m_base.isNull() || m_start.isNull() || m_base.isNull()) | 582 if (m_base.isNull() || m_start.isNull() || m_base.isNull()) |
| 583 return; | 583 return; |
| 584 SelectionAdjuster::adjustSelectionToAvoidCrossingShadowBoundaries(this); | 584 SelectionAdjuster::adjustSelectionToAvoidCrossingShadowBoundaries(this); |
| 585 } | 585 } |
| 586 | 586 |
| 587 static Element* lowestEditableAncestor(Node* node) | 587 static Element* lowestEditableAncestor(Node* node) |
| 588 { | 588 { |
| 589 while (node) { | 589 while (node) { |
| 590 if (node->hasEditableStyle()) | 590 if (hasEditableStyle(*node)) |
| 591 return rootEditableElement(*node); | 591 return rootEditableElement(*node); |
| 592 if (isHTMLBodyElement(*node)) | 592 if (isHTMLBodyElement(*node)) |
| 593 break; | 593 break; |
| 594 node = node->parentNode(); | 594 node = node->parentNode(); |
| 595 } | 595 } |
| 596 | 596 |
| 597 return nullptr; | 597 return nullptr; |
| 598 } | 598 } |
| 599 | 599 |
| 600 template <typename Strategy> | 600 template <typename Strategy> |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 { | 908 { |
| 909 sel.showTreeForThis(); | 909 sel.showTreeForThis(); |
| 910 } | 910 } |
| 911 | 911 |
| 912 void showTree(const blink::VisibleSelectionInFlatTree* sel) | 912 void showTree(const blink::VisibleSelectionInFlatTree* sel) |
| 913 { | 913 { |
| 914 if (sel) | 914 if (sel) |
| 915 sel->showTreeForThis(); | 915 sel->showTreeForThis(); |
| 916 } | 916 } |
| 917 #endif | 917 #endif |
| OLD | NEW |