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 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
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 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 private: | 344 private: |
345 DocumentWeakReference(Document* document) | 345 DocumentWeakReference(Document* document) |
346 : m_document(document) | 346 : m_document(document) |
347 { | 347 { |
348 ASSERT(isMainThread()); | 348 ASSERT(isMainThread()); |
349 } | 349 } |
350 | 350 |
351 Document* m_document; | 351 Document* m_document; |
352 }; | 352 }; |
353 | 353 |
354 Document::Document(Frame* frame, const KURL& url, bool isXHTML, bool isHTML) | 354 Document::Document(Frame* frame, const KURL& url, bool isXHTML, bool isHTML, con
st KURL& baseURL) |
355 : ContainerNode(0) | 355 : ContainerNode(0) |
356 , m_compatibilityMode(NoQuirksMode) | 356 , m_compatibilityMode(NoQuirksMode) |
357 , m_compatibilityModeLocked(false) | 357 , m_compatibilityModeLocked(false) |
358 , m_domTreeVersion(0) | 358 , m_domTreeVersion(0) |
359 , m_styleSheets(StyleSheetList::create(this)) | 359 , m_styleSheets(StyleSheetList::create(this)) |
360 , m_styleRecalcTimer(this, &Document::styleRecalcTimerFired) | 360 , m_styleRecalcTimer(this, &Document::styleRecalcTimerFired) |
361 , m_pendingStyleRecalcShouldForce(false) | 361 , m_pendingStyleRecalcShouldForce(false) |
362 , m_frameElementsShouldIgnoreScrolling(false) | 362 , m_frameElementsShouldIgnoreScrolling(false) |
363 , m_containsValidityStyleRules(false) | 363 , m_containsValidityStyleRules(false) |
364 , m_updateFocusAppearanceRestoresSelection(false) | 364 , m_updateFocusAppearanceRestoresSelection(false) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 m_printing = false; | 413 m_printing = false; |
414 m_paginatedForScreen = false; | 414 m_paginatedForScreen = false; |
415 | 415 |
416 m_ignoreAutofocus = false; | 416 m_ignoreAutofocus = false; |
417 | 417 |
418 m_frame = frame; | 418 m_frame = frame; |
419 | 419 |
420 if (frame || !url.isEmpty()) | 420 if (frame || !url.isEmpty()) |
421 setURL(url); | 421 setURL(url); |
422 | 422 |
| 423 // Setting of m_baseURL needs to happen after the setURL call, since that |
| 424 // calls updateBaseURL, which would clobber the passed in value. |
| 425 if (!baseURL.isNull()) |
| 426 m_baseURL = baseURL; |
| 427 |
423 m_axObjectCache = 0; | 428 m_axObjectCache = 0; |
424 | 429 |
425 m_markers = new DocumentMarkerController(); | 430 m_markers = new DocumentMarkerController(); |
426 | 431 |
427 m_docLoader = new DocLoader(this); | 432 m_docLoader = new DocLoader(this); |
428 | 433 |
429 m_visuallyOrdered = false; | 434 m_visuallyOrdered = false; |
430 m_bParsing = false; | 435 m_bParsing = false; |
431 m_wellFormed = false; | 436 m_wellFormed = false; |
432 | 437 |
(...skipping 4331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4764 void Document::decrementLoadEventDelayCount() | 4769 void Document::decrementLoadEventDelayCount() |
4765 { | 4770 { |
4766 ASSERT(m_loadEventDelayCount); | 4771 ASSERT(m_loadEventDelayCount); |
4767 --m_loadEventDelayCount; | 4772 --m_loadEventDelayCount; |
4768 | 4773 |
4769 if (frame() && !m_loadEventDelayCount) | 4774 if (frame() && !m_loadEventDelayCount) |
4770 frame()->loader()->checkCompleted(); | 4775 frame()->loader()->checkCompleted(); |
4771 } | 4776 } |
4772 | 4777 |
4773 } // namespace WebCore | 4778 } // namespace WebCore |
OLD | NEW |