| 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 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 | 1043 |
| 1044 if (renderer == posRenderer && thisRenderedOffset == posRenderedOffset) | 1044 if (renderer == posRenderer && thisRenderedOffset == posRenderedOffset) |
| 1045 return false; | 1045 return false; |
| 1046 | 1046 |
| 1047 int ignoredCaretOffset; | 1047 int ignoredCaretOffset; |
| 1048 InlineBox* b1; | 1048 InlineBox* b1; |
| 1049 getInlineBoxAndOffset(DOWNSTREAM, b1, ignoredCaretOffset); | 1049 getInlineBoxAndOffset(DOWNSTREAM, b1, ignoredCaretOffset); |
| 1050 InlineBox* b2; | 1050 InlineBox* b2; |
| 1051 pos.getInlineBoxAndOffset(DOWNSTREAM, b2, ignoredCaretOffset); | 1051 pos.getInlineBoxAndOffset(DOWNSTREAM, b2, ignoredCaretOffset); |
| 1052 | 1052 |
| 1053 LOG(Editing, "renderer: %p [%p]\n", renderer, b1); | 1053 LOG_INFO(Editing, "renderer: %p [%p]\n", renderer, b1); |
| 1054 LOG(Editing, "thisRenderedOffset: %d\n", thisRenderedOffset); | 1054 LOG_INFO(Editing, "thisRenderedOffset: %d\n", thisRenderedOffset); |
| 1055 LOG(Editing, "posRenderer: %p [%p]\n", posRenderer, b2); | 1055 LOG_INFO(Editing, "posRenderer: %p [%p]\n", posRenderer, b2); |
| 1056 LOG(Editing, "posRenderedOffset: %d\n", posRenderedOffset); | 1056 LOG_INFO(Editing, "posRenderedOffset: %d\n", posRenderedOffset); |
| 1057 LOG(Editing, "node min/max: %d:%d\n", caretMinOffset(deprecatedNod
e()), caretMaxOffset(deprecatedNode())); | 1057 LOG_INFO(Editing, "node min/max: %d:%d\n", caretMinOffset(deprecat
edNode()), caretMaxOffset(deprecatedNode())); |
| 1058 LOG(Editing, "pos node min/max: %d:%d\n", caretMinOffset(pos.deprecate
dNode()), caretMaxOffset(pos.deprecatedNode())); | 1058 LOG_INFO(Editing, "pos node min/max: %d:%d\n", caretMinOffset(pos.depr
ecatedNode()), caretMaxOffset(pos.deprecatedNode())); |
| 1059 LOG(Editing, "--------------------------------------------------------------
--------\n"); | 1059 LOG_INFO(Editing, "---------------------------------------------------------
-------------\n"); |
| 1060 | 1060 |
| 1061 if (!b1 || !b2) { | 1061 if (!b1 || !b2) { |
| 1062 return false; | 1062 return false; |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 if (b1->root() != b2->root()) { | 1065 if (b1->root() != b2->root()) { |
| 1066 return true; | 1066 return true; |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 if (nextRenderedEditable(deprecatedNode()) == pos.deprecatedNode() | 1069 if (nextRenderedEditable(deprecatedNode()) == pos.deprecatedNode() |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 pos.showTreeForThis(); | 1418 pos.showTreeForThis(); |
| 1419 } | 1419 } |
| 1420 | 1420 |
| 1421 void showTree(const WebCore::Position* pos) | 1421 void showTree(const WebCore::Position* pos) |
| 1422 { | 1422 { |
| 1423 if (pos) | 1423 if (pos) |
| 1424 pos->showTreeForThis(); | 1424 pos->showTreeForThis(); |
| 1425 } | 1425 } |
| 1426 | 1426 |
| 1427 #endif | 1427 #endif |
| OLD | NEW |