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, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 5049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5060 return node; | 5060 return node; |
5061 } | 5061 } |
5062 | 5062 |
5063 void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads
, RenderObject& renderer) | 5063 void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads
, RenderObject& renderer) |
5064 { | 5064 { |
5065 if (!view()) | 5065 if (!view()) |
5066 return; | 5066 return; |
5067 | 5067 |
5068 LayoutRect visibleContentRect = view()->visibleContentRect(); | 5068 LayoutRect visibleContentRect = view()->visibleContentRect(); |
5069 for (size_t i = 0; i < quads.size(); ++i) { | 5069 for (size_t i = 0; i < quads.size(); ++i) { |
5070 quads[i].move(-FloatSize(visibleContentRect.x(), visibleContentRect.y())
); | 5070 quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleConten
tRect.y().toFloat())); |
5071 adjustFloatQuadForAbsoluteZoom(quads[i], renderer); | 5071 adjustFloatQuadForAbsoluteZoom(quads[i], renderer); |
5072 } | 5072 } |
5073 } | 5073 } |
5074 | 5074 |
5075 void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, RenderOb
ject& renderer) | 5075 void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, RenderOb
ject& renderer) |
5076 { | 5076 { |
5077 if (!view()) | 5077 if (!view()) |
5078 return; | 5078 return; |
5079 | 5079 |
5080 LayoutRect visibleContentRect = view()->visibleContentRect(); | 5080 LayoutRect visibleContentRect = view()->visibleContentRect(); |
5081 rect.move(-FloatSize(visibleContentRect.x(), visibleContentRect.y())); | 5081 rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y(
).toFloat())); |
5082 adjustFloatRectForAbsoluteZoom(rect, renderer); | 5082 adjustFloatRectForAbsoluteZoom(rect, renderer); |
5083 } | 5083 } |
5084 | 5084 |
5085 bool Document::hasActiveParser() | 5085 bool Document::hasActiveParser() |
5086 { | 5086 { |
5087 return m_activeParserCount || (m_parser && m_parser->processingData()); | 5087 return m_activeParserCount || (m_parser && m_parser->processingData()); |
5088 } | 5088 } |
5089 | 5089 |
5090 void Document::decrementActiveParserCount() | 5090 void Document::decrementActiveParserCount() |
5091 { | 5091 { |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5444 } | 5444 } |
5445 | 5445 |
5446 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5446 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5447 { | 5447 { |
5448 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5448 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5449 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5449 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5450 (*it)->invalidateCache(attrName); | 5450 (*it)->invalidateCache(attrName); |
5451 } | 5451 } |
5452 | 5452 |
5453 } // namespace WebCore | 5453 } // namespace WebCore |
OLD | NEW |