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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 for (const LayoutObject* r = m_anchorNode->renderer(); r; r = r->parent()) { | 1228 for (const LayoutObject* r = m_anchorNode->renderer(); r; r = r->parent()) { |
1229 if (r->isRenderBlockFlow()) { | 1229 if (r->isRenderBlockFlow()) { |
1230 primaryDirection = r->style()->direction(); | 1230 primaryDirection = r->style()->direction(); |
1231 break; | 1231 break; |
1232 } | 1232 } |
1233 } | 1233 } |
1234 | 1234 |
1235 return primaryDirection; | 1235 return primaryDirection; |
1236 } | 1236 } |
1237 | 1237 |
1238 void Position::trace(Visitor* visitor) | 1238 DEFINE_TRACE(Position) |
1239 { | 1239 { |
1240 visitor->trace(m_anchorNode); | 1240 visitor->trace(m_anchorNode); |
1241 } | 1241 } |
1242 | 1242 |
1243 void Position::debugPosition(const char* msg) const | 1243 void Position::debugPosition(const char* msg) const |
1244 { | 1244 { |
1245 if (isNull()) | 1245 if (isNull()) |
1246 fprintf(stderr, "Position [%s]: null\n", msg); | 1246 fprintf(stderr, "Position [%s]: null\n", msg); |
1247 else | 1247 else |
1248 fprintf(stderr, "Position [%s]: %s [%p] at %d\n", msg, deprecatedNode()-
>nodeName().utf8().data(), deprecatedNode(), m_offset); | 1248 fprintf(stderr, "Position [%s]: %s [%p] at %d\n", msg, deprecatedNode()-
>nodeName().utf8().data(), deprecatedNode(), m_offset); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 pos.showTreeForThis(); | 1313 pos.showTreeForThis(); |
1314 } | 1314 } |
1315 | 1315 |
1316 void showTree(const blink::Position* pos) | 1316 void showTree(const blink::Position* pos) |
1317 { | 1317 { |
1318 if (pos) | 1318 if (pos) |
1319 pos->showTreeForThis(); | 1319 pos->showTreeForThis(); |
1320 } | 1320 } |
1321 | 1321 |
1322 #endif | 1322 #endif |
OLD | NEW |