| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 TextStream ts; | 1087 TextStream ts; |
| 1088 if (!m_trackedPaintInvalidationRects.isEmpty()) { | 1088 if (!m_trackedPaintInvalidationRects.isEmpty()) { |
| 1089 ts << "(repaint rects\n"; | 1089 ts << "(repaint rects\n"; |
| 1090 for (size_t i = 0; i < m_trackedPaintInvalidationRects.size(); ++i) | 1090 for (size_t i = 0; i < m_trackedPaintInvalidationRects.size(); ++i) |
| 1091 ts << " (rect " << m_trackedPaintInvalidationRects[i].x() << " " <<
m_trackedPaintInvalidationRects[i].y() << " " << m_trackedPaintInvalidationRect
s[i].width() << " " << m_trackedPaintInvalidationRects[i].height() << ")\n"; | 1091 ts << " (rect " << m_trackedPaintInvalidationRects[i].x() << " " <<
m_trackedPaintInvalidationRects[i].y() << " " << m_trackedPaintInvalidationRect
s[i].width() << " " << m_trackedPaintInvalidationRects[i].height() << ")\n"; |
| 1092 ts << ")\n"; | 1092 ts << ")\n"; |
| 1093 } | 1093 } |
| 1094 return ts.release(); | 1094 return ts.release(); |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 void FrameView::addResizerArea(RenderBox& resizerBox) | |
| 1098 { | |
| 1099 if (!m_resizerAreas) | |
| 1100 m_resizerAreas = adoptPtr(new ResizerAreaSet); | |
| 1101 m_resizerAreas->add(&resizerBox); | |
| 1102 } | |
| 1103 | |
| 1104 void FrameView::removeResizerArea(RenderBox& resizerBox) | |
| 1105 { | |
| 1106 if (!m_resizerAreas) | |
| 1107 return; | |
| 1108 | |
| 1109 ResizerAreaSet::iterator it = m_resizerAreas->find(&resizerBox); | |
| 1110 if (it != m_resizerAreas->end()) | |
| 1111 m_resizerAreas->remove(it); | |
| 1112 } | |
| 1113 | |
| 1114 void FrameView::addScrollableArea(ScrollableArea* scrollableArea) | 1097 void FrameView::addScrollableArea(ScrollableArea* scrollableArea) |
| 1115 { | 1098 { |
| 1116 ASSERT(scrollableArea); | 1099 ASSERT(scrollableArea); |
| 1117 if (!m_scrollableAreas) | 1100 if (!m_scrollableAreas) |
| 1118 m_scrollableAreas = adoptPtr(new ScrollableAreaSet); | 1101 m_scrollableAreas = adoptPtr(new ScrollableAreaSet); |
| 1119 m_scrollableAreas->add(scrollableArea); | 1102 m_scrollableAreas->add(scrollableArea); |
| 1120 } | 1103 } |
| 1121 | 1104 |
| 1122 void FrameView::removeScrollableArea(ScrollableArea* scrollableArea) | 1105 void FrameView::removeScrollableArea(ScrollableArea* scrollableArea) |
| 1123 { | 1106 { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 void FrameView::setLayoutSizeInternal(const IntSize& size) | 1138 void FrameView::setLayoutSizeInternal(const IntSize& size) |
| 1156 { | 1139 { |
| 1157 if (m_layoutSize == size) | 1140 if (m_layoutSize == size) |
| 1158 return; | 1141 return; |
| 1159 | 1142 |
| 1160 m_layoutSize = size; | 1143 m_layoutSize = size; |
| 1161 contentsResized(); | 1144 contentsResized(); |
| 1162 } | 1145 } |
| 1163 | 1146 |
| 1164 } // namespace blink | 1147 } // namespace blink |
| OLD | NEW |