OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008, 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 void HistoryItem::setReferrer(const Referrer& referrer) | 97 void HistoryItem::setReferrer(const Referrer& referrer) |
98 { | 98 { |
99 m_referrer = referrer; | 99 m_referrer = referrer; |
100 } | 100 } |
101 | 101 |
102 void HistoryItem::setTarget(const String& target) | 102 void HistoryItem::setTarget(const String& target) |
103 { | 103 { |
104 m_target = target; | 104 m_target = target; |
105 } | 105 } |
106 | 106 |
107 const FloatPoint& HistoryItem::pinchViewportScrollPoint() const | |
108 { | |
109 return m_pinchViewportScrollPoint; | |
110 } | |
111 | |
112 void HistoryItem::setPinchViewportScrollPoint(const FloatPoint& point) | |
113 { | |
114 m_pinchViewportScrollPoint = point; | |
115 } | |
116 | |
107 const IntPoint& HistoryItem::scrollPoint() const | 117 const IntPoint& HistoryItem::scrollPoint() const |
108 { | 118 { |
109 return m_scrollPoint; | 119 return m_scrollPoint; |
110 } | 120 } |
111 | 121 |
112 void HistoryItem::setScrollPoint(const IntPoint& point) | 122 void HistoryItem::setScrollPoint(const IntPoint& point) |
113 { | 123 { |
114 m_scrollPoint = point; | 124 m_scrollPoint = point; |
115 } | 125 } |
116 | 126 |
117 void HistoryItem::clearScrollPoint() | 127 void HistoryItem::clearScrollPoint() |
118 { | 128 { |
119 m_scrollPoint.setX(0); | 129 m_scrollPoint.setX(0); |
eseidel
2014/05/08 18:58:02
m_scrollPoint = IntPoint();
m_pinchViewportScrollP
bokan
2014/05/08 19:27:47
Done. (Though the latter is a FloatPoint)
| |
120 m_scrollPoint.setY(0); | 130 m_scrollPoint.setY(0); |
131 m_pinchViewportScrollPoint.setX(0); | |
132 m_pinchViewportScrollPoint.setY(0); | |
121 } | 133 } |
122 | 134 |
123 float HistoryItem::pageScaleFactor() const | 135 float HistoryItem::pageScaleFactor() const |
124 { | 136 { |
125 return m_pageScaleFactor; | 137 return m_pageScaleFactor; |
126 } | 138 } |
127 | 139 |
128 void HistoryItem::setPageScaleFactor(float scaleFactor) | 140 void HistoryItem::setPageScaleFactor(float scaleFactor) |
129 { | 141 { |
130 m_pageScaleFactor = scaleFactor; | 142 m_pageScaleFactor = scaleFactor; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 } | 225 } |
214 | 226 |
215 bool HistoryItem::isCurrentDocument(Document* doc) const | 227 bool HistoryItem::isCurrentDocument(Document* doc) const |
216 { | 228 { |
217 // FIXME: We should find a better way to check if this is the current docume nt. | 229 // FIXME: We should find a better way to check if this is the current docume nt. |
218 return equalIgnoringFragmentIdentifier(url(), doc->url()); | 230 return equalIgnoringFragmentIdentifier(url(), doc->url()); |
219 } | 231 } |
220 | 232 |
221 } // namespace WebCore | 233 } // namespace WebCore |
222 | 234 |
OLD | NEW |