OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2009 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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 return true; | 941 return true; |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
945 if (isHTMLBRElement(*deprecatedNode()) && pos.isCandidate()) | 945 if (isHTMLBRElement(*deprecatedNode()) && pos.isCandidate()) |
946 return true; | 946 return true; |
947 | 947 |
948 if (isHTMLBRElement(*pos.deprecatedNode()) && isCandidate()) | 948 if (isHTMLBRElement(*pos.deprecatedNode()) && isCandidate()) |
949 return true; | 949 return true; |
950 | 950 |
951 if (deprecatedNode()->enclosingBlockFlowElement() != pos.deprecatedNode()->e
nclosingBlockFlowElement()) | 951 if (!inSameContainingBlockFlowElement(deprecatedNode(), pos.deprecatedNode()
)) |
952 return true; | 952 return true; |
953 | 953 |
954 if (deprecatedNode()->isTextNode() && !inRenderedText()) | 954 if (deprecatedNode()->isTextNode() && !inRenderedText()) |
955 return false; | 955 return false; |
956 | 956 |
957 if (pos.deprecatedNode()->isTextNode() && !pos.inRenderedText()) | 957 if (pos.deprecatedNode()->isTextNode() && !pos.inRenderedText()) |
958 return false; | 958 return false; |
959 | 959 |
960 int thisRenderedOffset = renderedOffset(); | 960 int thisRenderedOffset = renderedOffset(); |
961 int posRenderedOffset = pos.renderedOffset(); | 961 int posRenderedOffset = pos.renderedOffset(); |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 pos.showTreeForThis(); | 1304 pos.showTreeForThis(); |
1305 } | 1305 } |
1306 | 1306 |
1307 void showTree(const blink::Position* pos) | 1307 void showTree(const blink::Position* pos) |
1308 { | 1308 { |
1309 if (pos) | 1309 if (pos) |
1310 pos->showTreeForThis(); | 1310 pos->showTreeForThis(); |
1311 } | 1311 } |
1312 | 1312 |
1313 #endif | 1313 #endif |
OLD | NEW |