Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 711173003: Rename a few functions now that we don't have zooming. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 Node* eventTargetNodeForDocument(Document* doc) 2656 Node* eventTargetNodeForDocument(Document* doc)
2657 { 2657 {
2658 if (!doc) 2658 if (!doc)
2659 return 0; 2659 return 0;
2660 Node* node = doc->focusedElement(); 2660 Node* node = doc->focusedElement();
2661 if (!node) 2661 if (!node)
2662 node = doc->documentElement(); 2662 node = doc->documentElement();
2663 return node; 2663 return node;
2664 } 2664 }
2665 2665
2666 // FIXME(sky): Rename and remove RenderObject argument now that we don't have zo om. 2666 void Document::adjustFloatQuadsForScroll(Vector<FloatQuad>& quads)
2667 void Document::adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>& quads , RenderObject&)
2668 { 2667 {
2669 if (!view()) 2668 if (!view())
2670 return; 2669 return;
2671 2670
2672 LayoutRect visibleContentRect = view()->visibleContentRect(); 2671 LayoutRect visibleContentRect = view()->visibleContentRect();
2673 for (size_t i = 0; i < quads.size(); ++i) { 2672 for (size_t i = 0; i < quads.size(); ++i) {
2674 quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleConten tRect.y().toFloat())); 2673 quads[i].move(-FloatSize(visibleContentRect.x().toFloat(), visibleConten tRect.y().toFloat()));
2675 } 2674 }
2676 } 2675 }
2677 2676
2678 // FIXME(sky): Rename and remove RenderObject argument now that we don't have zo om. 2677 void Document::adjustFloatRectForScroll(FloatRect& rect)
2679 void Document::adjustFloatRectForScrollAndAbsoluteZoom(FloatRect& rect, RenderOb ject&)
2680 { 2678 {
2681 if (!view()) 2679 if (!view())
2682 return; 2680 return;
2683 2681
2684 LayoutRect visibleContentRect = view()->visibleContentRect(); 2682 LayoutRect visibleContentRect = view()->visibleContentRect();
2685 rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y( ).toFloat())); 2683 rect.move(-FloatSize(visibleContentRect.x().toFloat(), visibleContentRect.y( ).toFloat()));
2686 } 2684 }
2687 2685
2688 bool Document::hasActiveParser() 2686 bool Document::hasActiveParser()
2689 { 2687 {
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2979 using namespace blink; 2977 using namespace blink;
2980 void showLiveDocumentInstances() 2978 void showLiveDocumentInstances()
2981 { 2979 {
2982 WeakDocumentSet& set = liveDocumentSet(); 2980 WeakDocumentSet& set = liveDocumentSet();
2983 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2981 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2984 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2982 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2985 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2983 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2986 } 2984 }
2987 } 2985 }
2988 #endif 2986 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698