Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(883)

Side by Side Diff: Source/WebCore/rendering/style/RenderStyle.h

Issue 11953117: Merge 139659 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderObject.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 } 1775 }
1776 1776
1777 return roundForImpreciseConversion<int>(value / zoomFactor); 1777 return roundForImpreciseConversion<int>(value / zoomFactor);
1778 } 1778 }
1779 1779
1780 inline float adjustFloatForAbsoluteZoom(float value, const RenderStyle* style) 1780 inline float adjustFloatForAbsoluteZoom(float value, const RenderStyle* style)
1781 { 1781 {
1782 return value / style->effectiveZoom(); 1782 return value / style->effectiveZoom();
1783 } 1783 }
1784 1784
1785 #if ENABLE(SUBPIXEL_LAYOUT)
1786 inline LayoutUnit adjustLayoutUnitForAbsoluteZoom(LayoutUnit value, const Render Style* style)
1787 {
1788 return value / style->effectiveZoom();
1789 }
1790 #endif
1791
1785 inline bool RenderStyle::setZoom(float f) 1792 inline bool RenderStyle::setZoom(float f)
1786 { 1793 {
1787 if (compareEqual(visual->m_zoom, f)) 1794 if (compareEqual(visual->m_zoom, f))
1788 return false; 1795 return false;
1789 visual.access()->m_zoom = f; 1796 visual.access()->m_zoom = f;
1790 setEffectiveZoom(effectiveZoom() * zoom()); 1797 setEffectiveZoom(effectiveZoom() * zoom());
1791 return true; 1798 return true;
1792 } 1799 }
1793 1800
1794 inline bool RenderStyle::setEffectiveZoom(float f) 1801 inline bool RenderStyle::setEffectiveZoom(float f)
(...skipping 17 matching lines...) Expand all
1812 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1819 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1813 return false; 1820 return false;
1814 1821
1815 rareInheritedData.access()->m_textOrientation = textOrientation; 1822 rareInheritedData.access()->m_textOrientation = textOrientation;
1816 return true; 1823 return true;
1817 } 1824 }
1818 1825
1819 } // namespace WebCore 1826 } // namespace WebCore
1820 1827
1821 #endif // RenderStyle_h 1828 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698