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

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

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS 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/DocumentParser.h » ('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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 detachParser(); 1474 detachParser();
1475 1475
1476 // FIXME(sky): Unclear if anything below this makes any sense. 1476 // FIXME(sky): Unclear if anything below this makes any sense.
1477 if (!m_frame) { 1477 if (!m_frame) {
1478 m_loadEventProgress = LoadEventTried; 1478 m_loadEventProgress = LoadEventTried;
1479 return; 1479 return;
1480 } 1480 }
1481 checkCompleted(); 1481 checkCompleted();
1482 } 1482 }
1483 1483
1484 PassRefPtrWillBeRawPtr<DocumentParser> Document::startParsing() 1484 void Document::startParsing()
1485 { 1485 {
1486 ASSERT(!m_parser); 1486 ASSERT(!m_parser);
1487 ASSERT(!m_isParsing); 1487 ASSERT(!m_isParsing);
1488 ASSERT(!firstChild()); 1488 ASSERT(!firstChild());
1489 ASSERT(!m_focusedElement); 1489 ASSERT(!m_focusedElement);
1490 1490
1491 m_parser = createParser(); 1491 m_parser = createParser();
1492 setParsing(true); 1492 setParsing(true);
1493 setReadyState(Loading); 1493 setReadyState(Loading);
1494 return m_parser;
1495 } 1494 }
1496 1495
1497 Element* Document::viewportDefiningElement(RenderStyle* rootStyle) const 1496 Element* Document::viewportDefiningElement(RenderStyle* rootStyle) const
1498 { 1497 {
1499 // If a BODY element sets non-visible overflow, it is to be propagated to th e viewport, as long 1498 // If a BODY element sets non-visible overflow, it is to be propagated to th e viewport, as long
1500 // as the following conditions are all met: 1499 // as the following conditions are all met:
1501 // (1) The root element is HTML. 1500 // (1) The root element is HTML.
1502 // (2) It is the primary BODY element (we only assert for this, expecting ca llers to behave). 1501 // (2) It is the primary BODY element (we only assert for this, expecting ca llers to behave).
1503 // (3) The root element has visible overflow. 1502 // (3) The root element has visible overflow.
1504 // Otherwise it's the root element's properties that are to be propagated. 1503 // Otherwise it's the root element's properties that are to be propagated.
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
3273 using namespace blink; 3272 using namespace blink;
3274 void showLiveDocumentInstances() 3273 void showLiveDocumentInstances()
3275 { 3274 {
3276 WeakDocumentSet& set = liveDocumentSet(); 3275 WeakDocumentSet& set = liveDocumentSet();
3277 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 3276 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
3278 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 3277 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
3279 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 3278 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
3280 } 3279 }
3281 } 3280 }
3282 #endif 3281 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/dom/DocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698