| 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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 if (m_frame->selection().isCaretBoundsDirty()) | 1316 if (m_frame->selection().isCaretBoundsDirty()) |
| 1317 m_frame->selection().invalidateCaretRect(); | 1317 m_frame->selection().invalidateCaretRect(); |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 void FrameView::setNeedsPaintPropertyUpdate() { | 1320 void FrameView::setNeedsPaintPropertyUpdate() { |
| 1321 m_needsPaintPropertyUpdate = true; | 1321 m_needsPaintPropertyUpdate = true; |
| 1322 if (LayoutObject* owner = frame().ownerLayoutObject()) | 1322 if (LayoutObject* owner = frame().ownerLayoutObject()) |
| 1323 owner->setNeedsPaintPropertyUpdate(); | 1323 owner->setNeedsPaintPropertyUpdate(); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 void FrameView::setSubtreeNeedsPaintPropertyUpdate() { |
| 1327 setNeedsPaintPropertyUpdate(); |
| 1328 layoutView()->setSubtreeNeedsPaintPropertyUpdate(); |
| 1329 } |
| 1330 |
| 1326 IntRect FrameView::computeVisibleArea() { | 1331 IntRect FrameView::computeVisibleArea() { |
| 1327 // Return our clipping bounds in the root frame. | 1332 // Return our clipping bounds in the root frame. |
| 1328 IntRect us(frameRect()); | 1333 IntRect us(frameRect()); |
| 1329 if (FrameView* parent = parentFrameView()) { | 1334 if (FrameView* parent = parentFrameView()) { |
| 1330 us = parent->contentsToRootFrame(us); | 1335 us = parent->contentsToRootFrame(us); |
| 1331 IntRect parentRect = parent->computeVisibleArea(); | 1336 IntRect parentRect = parent->computeVisibleArea(); |
| 1332 if (parentRect.isEmpty()) | 1337 if (parentRect.isEmpty()) |
| 1333 return IntRect(); | 1338 return IntRect(); |
| 1334 | 1339 |
| 1335 us.intersect(parentRect); | 1340 us.intersect(parentRect); |
| (...skipping 3541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4877 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; | 4882 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; |
| 4878 ++reason) { | 4883 ++reason) { |
| 4879 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { | 4884 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { |
| 4880 reasons |= 1 << (reason - 1); | 4885 reasons |= 1 << (reason - 1); |
| 4881 } | 4886 } |
| 4882 } | 4887 } |
| 4883 return reasons; | 4888 return reasons; |
| 4884 } | 4889 } |
| 4885 | 4890 |
| 4886 } // namespace blink | 4891 } // namespace blink |
| OLD | NEW |