OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights |
7 * reserved. | 7 * reserved. |
8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 if (length.type() == Percent && direction == Vertical) | 72 if (length.type() == Percent && direction == Vertical) |
73 return initialViewportSize.height() * length.getFloatValue() / 100.0f; | 73 return initialViewportSize.height() * length.getFloatValue() / 100.0f; |
74 | 74 |
75 if (length.type() == DeviceWidth) | 75 if (length.type() == DeviceWidth) |
76 return initialViewportSize.width(); | 76 return initialViewportSize.width(); |
77 | 77 |
78 if (length.type() == DeviceHeight) | 78 if (length.type() == DeviceHeight) |
79 return initialViewportSize.height(); | 79 return initialViewportSize.height(); |
80 | 80 |
81 ASSERT_NOT_REACHED(); | 81 NOTREACHED(); |
82 return ViewportDescription::ValueAuto; | 82 return ViewportDescription::ValueAuto; |
83 } | 83 } |
84 | 84 |
85 PageScaleConstraints ViewportDescription::resolve( | 85 PageScaleConstraints ViewportDescription::resolve( |
86 const FloatSize& initialViewportSize, | 86 const FloatSize& initialViewportSize, |
87 Length legacyFallbackWidth) const { | 87 Length legacyFallbackWidth) const { |
88 float resultWidth = ValueAuto; | 88 float resultWidth = ValueAuto; |
89 | 89 |
90 Length copyMaxWidth = maxWidth; | 90 Length copyMaxWidth = maxWidth; |
91 Length copyMinWidth = minWidth; | 91 Length copyMinWidth = minWidth; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 metaTagTypeHistogram.count(MobileOptimizedMeta); | 292 metaTagTypeHistogram.count(MobileOptimizedMeta); |
293 } | 293 } |
294 #endif | 294 #endif |
295 } | 295 } |
296 | 296 |
297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const { | 297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const { |
298 return isSpecifiedByAuthor(); | 298 return isSpecifiedByAuthor(); |
299 } | 299 } |
300 | 300 |
301 } // namespace blink | 301 } // namespace blink |
OLD | NEW |