| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 | 630 |
| 631 if (lastContent && !reuseContent) | 631 if (lastContent && !reuseContent) |
| 632 lastContent->m_next = newContentData; | 632 lastContent->m_next = newContentData; |
| 633 else | 633 else |
| 634 content.set(newContentData); | 634 content.set(newContentData); |
| 635 | 635 |
| 636 newContentData->m_content.m_counter = c; | 636 newContentData->m_content.m_counter = c; |
| 637 newContentData->m_type = CONTENT_COUNTER; | 637 newContentData->m_type = CONTENT_COUNTER; |
| 638 } | 638 } |
| 639 | 639 |
| 640 void RenderStyle::applyTransform(TransformationMatrix& transform, const IntSize&
borderBoxSize, ApplyTransformOrigin applyOrigin) const | 640 void RenderStyle::applyTransform(TransformationMatrix& transform, const IntSize&
borderBoxSize, bool includeTransformOrigin) const |
| 641 { | 641 { |
| 642 // transform-origin brackets the transform with translate operations. | 642 // transform-origin brackets the transform with translate operations. |
| 643 // Optimize for the case where the only transform is a translation, since th
e transform-origin is irrelevant | 643 // Optimize for the case where the only transform is a translation, since th
e transform-origin is irrelevant |
| 644 // in that case. | 644 // in that case. |
| 645 bool applyTransformOrigin = false; | 645 bool applyTransformOrigin = false; |
| 646 unsigned s = rareNonInheritedData->m_transform->m_operations.operations().si
ze(); | 646 unsigned s = rareNonInheritedData->m_transform->m_operations.operations().si
ze(); |
| 647 unsigned i; | 647 unsigned i; |
| 648 if (applyOrigin == IncludeTransformOrigin) { | 648 if (includeTransformOrigin) { |
| 649 for (i = 0; i < s; i++) { | 649 for (i = 0; i < s; i++) { |
| 650 TransformOperation::OperationType type = rareNonInheritedData->m_tra
nsform->m_operations.operations()[i]->getOperationType(); | 650 TransformOperation::OperationType type = rareNonInheritedData->m_tra
nsform->m_operations.operations()[i]->getOperationType(); |
| 651 if (type != TransformOperation::TRANSLATE_X && | 651 if (type != TransformOperation::TRANSLATE_X && |
| 652 type != TransformOperation::TRANSLATE_Y && | 652 type != TransformOperation::TRANSLATE_Y && |
| 653 type != TransformOperation::TRANSLATE) { | 653 type != TransformOperation::TRANSLATE) { |
| 654 applyTransformOrigin = true; | 654 applyTransformOrigin = true; |
| 655 break; | 655 break; |
| 656 } | 656 } |
| 657 } | 657 } |
| 658 } | 658 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 { | 835 { |
| 836 FontDescription desc(fontDescription()); | 836 FontDescription desc(fontDescription()); |
| 837 desc.setSpecifiedSize(size); | 837 desc.setSpecifiedSize(size); |
| 838 desc.setComputedSize(size); | 838 desc.setComputedSize(size); |
| 839 setFontDescription(desc); | 839 setFontDescription(desc); |
| 840 font().update(font().fontSelector()); | 840 font().update(font().fontSelector()); |
| 841 } | 841 } |
| 842 | 842 |
| 843 } // namespace WebCore | 843 } // namespace WebCore |
| 844 | 844 |
| OLD | NEW |