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

Side by Side Diff: Source/core/dom/Document.h

Issue 224113002: Oilpan: move Range object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use STACK_ALLOCATED() + incorporate ager's overview of macros in this area. Created 6 years, 8 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
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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "core/dom/QualifiedName.h" 42 #include "core/dom/QualifiedName.h"
43 #include "core/dom/TextLinkColors.h" 43 #include "core/dom/TextLinkColors.h"
44 #include "core/dom/TreeScope.h" 44 #include "core/dom/TreeScope.h"
45 #include "core/dom/UserActionElementSet.h" 45 #include "core/dom/UserActionElementSet.h"
46 #include "core/dom/ViewportDescription.h" 46 #include "core/dom/ViewportDescription.h"
47 #include "core/dom/custom/CustomElement.h" 47 #include "core/dom/custom/CustomElement.h"
48 #include "core/html/CollectionType.h" 48 #include "core/html/CollectionType.h"
49 #include "core/page/FocusType.h" 49 #include "core/page/FocusType.h"
50 #include "core/page/PageVisibilityState.h" 50 #include "core/page/PageVisibilityState.h"
51 #include "core/rendering/HitTestRequest.h" 51 #include "core/rendering/HitTestRequest.h"
52 #include "heap/Handle.h"
53 #include "platform/Length.h" 52 #include "platform/Length.h"
54 #include "platform/Timer.h" 53 #include "platform/Timer.h"
54 #include "platform/heap/Handle.h"
55 #include "platform/weborigin/KURL.h" 55 #include "platform/weborigin/KURL.h"
56 #include "platform/weborigin/ReferrerPolicy.h" 56 #include "platform/weborigin/ReferrerPolicy.h"
57 #include "wtf/HashSet.h" 57 #include "wtf/HashSet.h"
58 #include "wtf/OwnPtr.h" 58 #include "wtf/OwnPtr.h"
59 #include "wtf/PassOwnPtr.h" 59 #include "wtf/PassOwnPtr.h"
60 #include "wtf/PassRefPtr.h" 60 #include "wtf/PassRefPtr.h"
61 #include "wtf/WeakPtr.h" 61 #include "wtf/WeakPtr.h"
62 62
63 namespace WebCore { 63 namespace WebCore {
64 64
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 * @param centerY y reference for the rectangle in CSS pixels 333 * @param centerY y reference for the rectangle in CSS pixels
334 * @param topPadding How much to expand the top of the rectangle 334 * @param topPadding How much to expand the top of the rectangle
335 * @param rightPadding How much to expand the right of the rectangle 335 * @param rightPadding How much to expand the right of the rectangle
336 * @param bottomPadding How much to expand the bottom of the rectangle 336 * @param bottomPadding How much to expand the bottom of the rectangle
337 * @param leftPadding How much to expand the left of the rectangle 337 * @param leftPadding How much to expand the left of the rectangle
338 */ 338 */
339 PassRefPtr<NodeList> nodesFromRect(int centerX, int centerY, 339 PassRefPtr<NodeList> nodesFromRect(int centerX, int centerY,
340 unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsi gned leftPadding, 340 unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsi gned leftPadding,
341 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowC ontent) const; 341 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowC ontent) const;
342 Element* elementFromPoint(int x, int y) const; 342 Element* elementFromPoint(int x, int y) const;
343 PassRefPtr<Range> caretRangeFromPoint(int x, int y); 343 PassRefPtrWillBeRawPtr<Range> caretRangeFromPoint(int x, int y);
344 344
345 String readyState() const; 345 String readyState() const;
346 346
347 String defaultCharset() const; 347 String defaultCharset() const;
348 348
349 AtomicString inputEncoding() const { return Document::encodingName(); } 349 AtomicString inputEncoding() const { return Document::encodingName(); }
350 AtomicString charset() const { return Document::encodingName(); } 350 AtomicString charset() const { return Document::encodingName(); }
351 AtomicString characterSet() const { return Document::encodingName(); } 351 AtomicString characterSet() const { return Document::encodingName(); }
352 352
353 AtomicString encodingName() const; 353 AtomicString encodingName() const;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 void setStateForNewFormElements(const Vector<String>&); 458 void setStateForNewFormElements(const Vector<String>&);
459 459
460 FrameView* view() const; // can be null 460 FrameView* view() const; // can be null
461 LocalFrame* frame() const { return m_frame; } // can be null 461 LocalFrame* frame() const { return m_frame; } // can be null
462 FrameHost* frameHost() const; // can be null 462 FrameHost* frameHost() const; // can be null
463 Page* page() const; // can be null 463 Page* page() const; // can be null
464 Settings* settings() const; // can be null 464 Settings* settings() const; // can be null
465 465
466 float devicePixelRatio() const; 466 float devicePixelRatio() const;
467 467
468 PassRefPtr<Range> createRange(); 468 PassRefPtrWillBeRawPtr<Range> createRange();
469 469
470 PassRefPtr<NodeIterator> createNodeIterator(Node* root, ExceptionState&); 470 PassRefPtr<NodeIterator> createNodeIterator(Node* root, ExceptionState&);
471 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, ExceptionState&); 471 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, ExceptionState&);
472 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, ExceptionState&); 472 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, ExceptionState&);
473 473
474 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&); 474 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&);
475 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionState&); 475 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionState&);
476 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas sRefPtr<NodeFilter>, ExceptionState&); 476 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas sRefPtr<NodeFilter>, ExceptionState&);
477 477
478 // Special support for editing 478 // Special support for editing
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 inline bool Node::isDocumentNode() const 1416 inline bool Node::isDocumentNode() const
1417 { 1417 {
1418 return this == document(); 1418 return this == document();
1419 } 1419 }
1420 1420
1421 Node* eventTargetNodeForDocument(Document*); 1421 Node* eventTargetNodeForDocument(Document*);
1422 1422
1423 } // namespace WebCore 1423 } // namespace WebCore
1424 1424
1425 #endif // Document_h 1425 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698