| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 3 * Copyright (C) 2007 Apple Inc. | 3 * Copyright (C) 2007 Apple Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 int docLogicalHeight = isHorizontal ? docRect.height() : docRect.width(); | 107 int docLogicalHeight = isHorizontal ? docRect.height() : docRect.width(); |
| 108 int pageLogicalHeight = isHorizontal ? pageHeight : pageWidth; | 108 int pageLogicalHeight = isHorizontal ? pageHeight : pageWidth; |
| 109 int pageLogicalWidth = isHorizontal ? pageWidth : pageHeight; | 109 int pageLogicalWidth = isHorizontal ? pageWidth : pageHeight; |
| 110 | 110 |
| 111 int inlineDirectionStart; | 111 int inlineDirectionStart; |
| 112 int inlineDirectionEnd; | 112 int inlineDirectionEnd; |
| 113 int blockDirectionStart; | 113 int blockDirectionStart; |
| 114 int blockDirectionEnd; | 114 int blockDirectionEnd; |
| 115 if (isHorizontal) { | 115 if (isHorizontal) { |
| 116 if (view->style()->isFlippedBlocksWritingMode()) { | 116 if (view->style()->slowIsFlippedBlocksWritingMode()) { |
| 117 blockDirectionStart = docRect.maxY(); | 117 blockDirectionStart = docRect.maxY(); |
| 118 blockDirectionEnd = docRect.y(); | 118 blockDirectionEnd = docRect.y(); |
| 119 } else { | 119 } else { |
| 120 blockDirectionStart = docRect.y(); | 120 blockDirectionStart = docRect.y(); |
| 121 blockDirectionEnd = docRect.maxY(); | 121 blockDirectionEnd = docRect.maxY(); |
| 122 } | 122 } |
| 123 inlineDirectionStart = view->style()->isLeftToRightDirection() ? docRect
.x() : docRect.maxX(); | 123 inlineDirectionStart = view->style()->isLeftToRightDirection() ? docRect
.x() : docRect.maxX(); |
| 124 inlineDirectionEnd = view->style()->isLeftToRightDirection() ? docRect.m
axX() : docRect.x(); | 124 inlineDirectionEnd = view->style()->isLeftToRightDirection() ? docRect.m
axX() : docRect.x(); |
| 125 } else { | 125 } else { |
| 126 if (view->style()->isFlippedBlocksWritingMode()) { | 126 if (view->style()->slowIsFlippedBlocksWritingMode()) { |
| 127 blockDirectionStart = docRect.maxX(); | 127 blockDirectionStart = docRect.maxX(); |
| 128 blockDirectionEnd = docRect.x(); | 128 blockDirectionEnd = docRect.x(); |
| 129 } else { | 129 } else { |
| 130 blockDirectionStart = docRect.x(); | 130 blockDirectionStart = docRect.x(); |
| 131 blockDirectionEnd = docRect.maxX(); | 131 blockDirectionEnd = docRect.maxX(); |
| 132 } | 132 } |
| 133 inlineDirectionStart = view->style()->isLeftToRightDirection() ? docRect
.y() : docRect.maxY(); | 133 inlineDirectionStart = view->style()->isLeftToRightDirection() ? docRect
.y() : docRect.maxY(); |
| 134 inlineDirectionEnd = view->style()->isLeftToRightDirection() ? docRect.m
axY() : docRect.y(); | 134 inlineDirectionEnd = view->style()->isLeftToRightDirection() ? docRect.m
axY() : docRect.y(); |
| 135 } | 135 } |
| 136 | 136 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 void PrintContext::trace(Visitor* visitor) | 344 void PrintContext::trace(Visitor* visitor) |
| 345 { | 345 { |
| 346 #if ENABLE(OILPAN) | 346 #if ENABLE(OILPAN) |
| 347 visitor->trace(m_frame); | 347 visitor->trace(m_frame); |
| 348 visitor->trace(m_linkDestinations); | 348 visitor->trace(m_linkDestinations); |
| 349 visitor->trace(m_linkedDestinations); | 349 visitor->trace(m_linkedDestinations); |
| 350 #endif | 350 #endif |
| 351 } | 351 } |
| 352 | 352 |
| 353 } | 353 } |
| OLD | NEW |