| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 LayoutUnit newRight = block().logicalRightOffsetForLine(selectionBottom,
false); | 455 LayoutUnit newRight = block().logicalRightOffsetForLine(selectionBottom,
false); |
| 456 if (nextLeft > newLeft || nextRight < newRight) | 456 if (nextLeft > newLeft || nextRight < newRight) |
| 457 return selectionBottom; | 457 return selectionBottom; |
| 458 } | 458 } |
| 459 | 459 |
| 460 return nextTop; | 460 return nextTop; |
| 461 } | 461 } |
| 462 | 462 |
| 463 int RootInlineBox::blockDirectionPointInLine() const | 463 int RootInlineBox::blockDirectionPointInLine() const |
| 464 { | 464 { |
| 465 return !block().style()->isFlippedBlocksWritingMode() ? std::max(lineTop(),
selectionTop()) : std::min(lineBottom(), selectionBottom()); | 465 return !block().style()->slowIsFlippedBlocksWritingMode() ? std::max(lineTop
(), selectionTop()) : std::min(lineBottom(), selectionBottom()); |
| 466 } | 466 } |
| 467 | 467 |
| 468 RenderBlockFlow& RootInlineBox::block() const | 468 RenderBlockFlow& RootInlineBox::block() const |
| 469 { | 469 { |
| 470 return toRenderBlockFlow(renderer()); | 470 return toRenderBlockFlow(renderer()); |
| 471 } | 471 } |
| 472 | 472 |
| 473 static bool isEditableLeaf(InlineBox* leaf) | 473 static bool isEditableLeaf(InlineBox* leaf) |
| 474 { | 474 { |
| 475 return leaf && leaf->renderer().node() && leaf->renderer().node()->hasEditab
leStyle(); | 475 return leaf && leaf->renderer().node() && leaf->renderer().node()->hasEditab
leStyle(); |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 } | 858 } |
| 859 | 859 |
| 860 #ifndef NDEBUG | 860 #ifndef NDEBUG |
| 861 const char* RootInlineBox::boxName() const | 861 const char* RootInlineBox::boxName() const |
| 862 { | 862 { |
| 863 return "RootInlineBox"; | 863 return "RootInlineBox"; |
| 864 } | 864 } |
| 865 #endif | 865 #endif |
| 866 | 866 |
| 867 } // namespace blink | 867 } // namespace blink |
| OLD | NEW |