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

Side by Side Diff: Source/core/loader/DocumentLoader.cpp

Issue 1329553004: Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build. Created 5 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 const AtomicString& encoding = m_frame->host()->overrideEncoding().isNull() ? response().textEncodingName() : m_frame->host()->overrideEncoding(); 524 const AtomicString& encoding = m_frame->host()->overrideEncoding().isNull() ? response().textEncodingName() : m_frame->host()->overrideEncoding();
525 525
526 // Prepare a DocumentInit before clearing the frame, because it may need to 526 // Prepare a DocumentInit before clearing the frame, because it may need to
527 // inherit an aliased security context. 527 // inherit an aliased security context.
528 DocumentInit init(url(), m_frame); 528 DocumentInit init(url(), m_frame);
529 init.withNewRegistrationContext(); 529 init.withNewRegistrationContext();
530 m_frame->loader().clear(); 530 m_frame->loader().clear();
531 ASSERT(m_frame->page()); 531 ASSERT(m_frame->page());
532 532
533 ParserSynchronizationPolicy parsingPolicy = AllowAsynchronousParsing; 533 ParserSynchronizationPolicy parsingPolicy = AllowAsynchronousParsing;
534 if ((m_substituteData.isValid() && m_substituteData.forceSynchronousLoad()) || !Document::threadedParsingEnabledForUnitTestsOnly()) 534 if ((m_substituteData.isValid() && m_substituteData.forceSynchronousLoad()) || !Document::threadedParsingEnabledForTesting())
535 parsingPolicy = ForceSynchronousParsing; 535 parsingPolicy = ForceSynchronousParsing;
536 536
537 m_writer = createWriterFor(0, init, mimeType, encoding, false, parsingPolicy ); 537 m_writer = createWriterFor(0, init, mimeType, encoding, false, parsingPolicy );
538 m_writer->setDocumentWasLoadedAsPartOfNavigation(); 538 m_writer->setDocumentWasLoadedAsPartOfNavigation();
539 539
540 // This should be set before receivedFirstData(). 540 // This should be set before receivedFirstData().
541 if (!overridingURL.isEmpty()) 541 if (!overridingURL.isEmpty())
542 m_frame->document()->setBaseURLOverride(overridingURL); 542 m_frame->document()->setBaseURLOverride(overridingURL);
543 543
544 // Call receivedFirstData() exactly once per load. 544 // Call receivedFirstData() exactly once per load.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 { 869 {
870 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri ter->encoding() : emptyAtom, true, ForceSynchronousParsing); 870 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri ter->encoding() : emptyAtom, true, ForceSynchronousParsing);
871 if (!source.isNull()) 871 if (!source.isNull())
872 m_writer->appendReplacingData(source); 872 m_writer->appendReplacingData(source);
873 endWriting(m_writer.get()); 873 endWriting(m_writer.get());
874 } 874 }
875 875
876 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); 876 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader);
877 877
878 } // namespace blink 878 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp ('k') | Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698