| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 ViewportSize(double width, double height) : m_size(width, height) { } | 73 ViewportSize(double width, double height) : m_size(width, height) { } |
| 74 explicit ViewportSize(const LayoutViewItem&); | 74 explicit ViewportSize(const LayoutViewItem&); |
| 75 | 75 |
| 76 double width() const { return m_size.width(); } | 76 double width() const { return m_size.width(); } |
| 77 double height() const { return m_size.height(); } | 77 double height() const { return m_size.height(); } |
| 78 private: | 78 private: |
| 79 DoubleSize m_size; | 79 DoubleSize m_size; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 CSSToLengthConversionData() { } | 82 CSSToLengthConversionData() { } |
| 83 CSSToLengthConversionData(const ComputedStyle*, float zoom); |
| 83 CSSToLengthConversionData(const ComputedStyle*, const FontSizes&, const View
portSize&, float zoom); | 84 CSSToLengthConversionData(const ComputedStyle*, const FontSizes&, const View
portSize&, float zoom); |
| 84 CSSToLengthConversionData(const ComputedStyle* currStyle, const ComputedStyl
e* rootStyle, const LayoutViewItem&, float zoom); | 85 CSSToLengthConversionData(const ComputedStyle* currStyle, const ComputedStyl
e* rootStyle, const LayoutViewItem&, float zoom); |
| 85 | 86 |
| 86 float zoom() const { return m_zoom; } | 87 float zoom() const { return m_zoom; } |
| 87 | 88 |
| 88 float emFontSize() const { return m_fontSizes.em(); } | 89 float emFontSize() const { return m_fontSizes.em(); } |
| 89 float remFontSize() const; | 90 float remFontSize() const; |
| 90 float exFontSize() const { return m_fontSizes.ex(); } | 91 float exFontSize() const { return m_fontSizes.ex(); } |
| 91 float chFontSize() const { return m_fontSizes.ch(); } | 92 float chFontSize() const { return m_fontSizes.ch(); } |
| 92 | 93 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 113 private: | 114 private: |
| 114 const ComputedStyle* m_style; | 115 const ComputedStyle* m_style; |
| 115 FontSizes m_fontSizes; | 116 FontSizes m_fontSizes; |
| 116 ViewportSize m_viewportSize; | 117 ViewportSize m_viewportSize; |
| 117 float m_zoom; | 118 float m_zoom; |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace blink | 121 } // namespace blink |
| 121 | 122 |
| 122 #endif | 123 #endif |
| OLD | NEW |