| 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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 for (const LayoutObject* r = m_anchorNode->layoutObject(); r; r = r->parent(
)) { | 1364 for (const LayoutObject* r = m_anchorNode->layoutObject(); r; r = r->parent(
)) { |
| 1365 if (r->isLayoutBlockFlow()) { | 1365 if (r->isLayoutBlockFlow()) { |
| 1366 primaryDirection = r->style()->direction(); | 1366 primaryDirection = r->style()->direction(); |
| 1367 break; | 1367 break; |
| 1368 } | 1368 } |
| 1369 } | 1369 } |
| 1370 | 1370 |
| 1371 return primaryDirection; | 1371 return primaryDirection; |
| 1372 } | 1372 } |
| 1373 | 1373 |
| 1374 DEFINE_TRACE(Position) | |
| 1375 { | |
| 1376 visitor->trace(m_anchorNode); | |
| 1377 } | |
| 1378 | |
| 1379 template <typename Strategy> | 1374 template <typename Strategy> |
| 1380 void PositionAlgorithm<Strategy>::debugPosition(const char* msg) const | 1375 void PositionAlgorithm<Strategy>::debugPosition(const char* msg) const |
| 1381 { | 1376 { |
| 1382 static const char* const anchorTypes[] = { | 1377 static const char* const anchorTypes[] = { |
| 1383 "OffsetInAnchor", | 1378 "OffsetInAnchor", |
| 1384 "BeforeAnchor", | 1379 "BeforeAnchor", |
| 1385 "AfterAnchor", | 1380 "AfterAnchor", |
| 1386 "BeforeChildren", | 1381 "BeforeChildren", |
| 1387 "AfterChildren", | 1382 "AfterChildren", |
| 1388 "Invalid", | 1383 "Invalid", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 pos.showTreeForThis(); | 1465 pos.showTreeForThis(); |
| 1471 } | 1466 } |
| 1472 | 1467 |
| 1473 void showTree(const blink::Position* pos) | 1468 void showTree(const blink::Position* pos) |
| 1474 { | 1469 { |
| 1475 if (pos) | 1470 if (pos) |
| 1476 pos->showTreeForThis(); | 1471 pos->showTreeForThis(); |
| 1477 } | 1472 } |
| 1478 | 1473 |
| 1479 #endif | 1474 #endif |
| OLD | NEW |