| 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 5144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5155 if (!node) | 5155 if (!node) |
| 5156 node = doc->documentElement(); | 5156 node = doc->documentElement(); |
| 5157 return node; | 5157 return node; |
| 5158 } | 5158 } |
| 5159 | 5159 |
| 5160 void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads
, LayoutObject& renderer) | 5160 void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads
, LayoutObject& renderer) |
| 5161 { | 5161 { |
| 5162 if (!view()) | 5162 if (!view()) |
| 5163 return; | 5163 return; |
| 5164 | 5164 |
| 5165 LayoutRect visibleContentRect = view()->visualViewportRect(); | 5165 LayoutRect visibleContentRect(view()->visualViewportRect()); |
| 5166 for (size_t i = 0; i < quads.size(); ++i) { | 5166 for (size_t i = 0; i < quads.size(); ++i) { |
| 5167 quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleConten
tRect.y().toFloat())); | 5167 quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleConten
tRect.y().toFloat())); |
| 5168 adjustFloatQuadForAbsoluteZoom(quads[i], renderer); | 5168 adjustFloatQuadForAbsoluteZoom(quads[i], renderer); |
| 5169 } | 5169 } |
| 5170 } | 5170 } |
| 5171 | 5171 |
| 5172 void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, LayoutOb
ject& renderer) | 5172 void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, LayoutOb
ject& renderer) |
| 5173 { | 5173 { |
| 5174 if (!view()) | 5174 if (!view()) |
| 5175 return; | 5175 return; |
| 5176 | 5176 |
| 5177 LayoutRect visibleContentRect = view()->visualViewportRect(); | 5177 LayoutRect visibleContentRect(view()->visualViewportRect()); |
| 5178 rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y(
).toFloat())); | 5178 rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y(
).toFloat())); |
| 5179 adjustFloatRectForAbsoluteZoom(rect, renderer); | 5179 adjustFloatRectForAbsoluteZoom(rect, renderer); |
| 5180 } | 5180 } |
| 5181 | 5181 |
| 5182 bool Document::hasActiveParser() | 5182 bool Document::hasActiveParser() |
| 5183 { | 5183 { |
| 5184 return m_activeParserCount || (m_parser && m_parser->processingData()); | 5184 return m_activeParserCount || (m_parser && m_parser->processingData()); |
| 5185 } | 5185 } |
| 5186 | 5186 |
| 5187 void Document::setContextFeatures(ContextFeatures& features) | 5187 void Document::setContextFeatures(ContextFeatures& features) |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5721 #ifndef NDEBUG | 5721 #ifndef NDEBUG |
| 5722 using namespace blink; | 5722 using namespace blink; |
| 5723 void showLiveDocumentInstances() | 5723 void showLiveDocumentInstances() |
| 5724 { | 5724 { |
| 5725 WeakDocumentSet& set = liveDocumentSet(); | 5725 WeakDocumentSet& set = liveDocumentSet(); |
| 5726 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5726 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5727 for (Document* document : set) | 5727 for (Document* document : set) |
| 5728 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5728 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5729 } | 5729 } |
| 5730 #endif | 5730 #endif |
| OLD | NEW |