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, 2010, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 Element* createElement(const QualifiedName&, CreateElementFlags); | 338 Element* createElement(const QualifiedName&, CreateElementFlags); |
339 | 339 |
340 Element* ElementFromPoint(int x, int y) const; | 340 Element* ElementFromPoint(int x, int y) const; |
341 HeapVector<Member<Element>> ElementsFromPoint(int x, int y) const; | 341 HeapVector<Member<Element>> ElementsFromPoint(int x, int y) const; |
342 Range* caretRangeFromPoint(int x, int y); | 342 Range* caretRangeFromPoint(int x, int y); |
343 Element* scrollingElement(); | 343 Element* scrollingElement(); |
344 // When calling from C++ code, use this method. scrollingElement() is | 344 // When calling from C++ code, use this method. scrollingElement() is |
345 // just for the web IDL implementation. | 345 // just for the web IDL implementation. |
346 Element* ScrollingElementNoLayout(); | 346 Element* ScrollingElementNoLayout(); |
347 | 347 |
348 void AddNonAttachedStyle(const Node&, RefPtr<ComputedStyle>); | |
349 ComputedStyle* GetNonAttachedStyle(const Node&) const; | |
350 | |
351 String readyState() const; | 348 String readyState() const; |
352 | 349 |
353 AtomicString characterSet() const { return Document::EncodingName(); } | 350 AtomicString characterSet() const { return Document::EncodingName(); } |
354 | 351 |
355 AtomicString EncodingName() const; | 352 AtomicString EncodingName() const; |
356 | 353 |
357 void SetContent(const String&); | 354 void SetContent(const String&); |
358 | 355 |
359 String SuggestedMIMEType() const; | 356 String SuggestedMIMEType() const; |
360 void SetMimeType(const AtomicString&); | 357 void SetMimeType(const AtomicString&); |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 PendingSheetLayout pending_sheet_layout_; | 1447 PendingSheetLayout pending_sheet_layout_; |
1451 | 1448 |
1452 Member<LocalFrame> frame_; | 1449 Member<LocalFrame> frame_; |
1453 Member<LocalDOMWindow> dom_window_; | 1450 Member<LocalDOMWindow> dom_window_; |
1454 TraceWrapperMember<HTMLImportsController> imports_controller_; | 1451 TraceWrapperMember<HTMLImportsController> imports_controller_; |
1455 | 1452 |
1456 Member<ResourceFetcher> fetcher_; | 1453 Member<ResourceFetcher> fetcher_; |
1457 Member<DocumentParser> parser_; | 1454 Member<DocumentParser> parser_; |
1458 Member<ContextFeatures> context_features_; | 1455 Member<ContextFeatures> context_features_; |
1459 | 1456 |
1460 // This HashMap is used to temporaily store the ComputedStyle generated in the | |
1461 // Style Resolution phase which is used in the Layout Tree construction phase. | |
1462 HeapHashMap<Member<const Node>, RefPtr<ComputedStyle>> non_attached_style_; | |
1463 | |
1464 bool well_formed_; | 1457 bool well_formed_; |
1465 | 1458 |
1466 // Document URLs. | 1459 // Document URLs. |
1467 KURL url_; // Document.URL: The URL from which this document was retrieved. | 1460 KURL url_; // Document.URL: The URL from which this document was retrieved. |
1468 KURL base_url_; // Node.baseURI: The URL to use when resolving relative URLs. | 1461 KURL base_url_; // Node.baseURI: The URL to use when resolving relative URLs. |
1469 KURL | 1462 KURL |
1470 base_url_override_; // An alternative base URL that takes precedence over | 1463 base_url_override_; // An alternative base URL that takes precedence over |
1471 // m_baseURL (but not m_baseElementURL). | 1464 // m_baseURL (but not m_baseElementURL). |
1472 KURL base_element_url_; // The URL set by the <base> element. | 1465 KURL base_element_url_; // The URL set by the <base> element. |
1473 KURL cookie_url_; // The URL to use for cookie access. | 1466 KURL cookie_url_; // The URL to use for cookie access. |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1733 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1726 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1734 | 1727 |
1735 } // namespace blink | 1728 } // namespace blink |
1736 | 1729 |
1737 #ifndef NDEBUG | 1730 #ifndef NDEBUG |
1738 // Outside the WebCore namespace for ease of invocation from gdb. | 1731 // Outside the WebCore namespace for ease of invocation from gdb. |
1739 CORE_EXPORT void showLiveDocumentInstances(); | 1732 CORE_EXPORT void showLiveDocumentInstances(); |
1740 #endif | 1733 #endif |
1741 | 1734 |
1742 #endif // Document_h | 1735 #endif // Document_h |
OLD | NEW |