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

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

Issue 673403002: Remove compiler feature detection for = delete (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't remove #define for FINAL 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/ContainerNode.h ('k') | sky/engine/core/dom/DocumentFragment.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, 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 void updateDistributionForNodeIfNeeded(Node*); 316 void updateDistributionForNodeIfNeeded(Node*);
317 317
318 ResourceFetcher* fetcher() { return m_fetcher.get(); } 318 ResourceFetcher* fetcher() { return m_fetcher.get(); }
319 319
320 virtual void attach(const AttachContext& = AttachContext()) override; 320 virtual void attach(const AttachContext& = AttachContext()) override;
321 virtual void detach(const AttachContext& = AttachContext()) override; 321 virtual void detach(const AttachContext& = AttachContext()) override;
322 void prepareForDestruction(); 322 void prepareForDestruction();
323 323
324 // If you have a Document, use renderView() instead which is faster. 324 // If you have a Document, use renderView() instead which is faster.
325 void renderer() const WTF_DELETED_FUNCTION; 325 void renderer() const = delete;
326 326
327 RenderView* renderView() const { return m_renderView; } 327 RenderView* renderView() const { return m_renderView; }
328 328
329 DocumentLoadTiming* timing() const; 329 DocumentLoadTiming* timing() const;
330 330
331 void startParsing(); 331 void startParsing();
332 void cancelParsing(); 332 void cancelParsing();
333 333
334 // close() is the DOM API document.close() 334 // close() is the DOM API document.close()
335 void close(ExceptionState& = ASSERT_NO_EXCEPTION); 335 void close(ExceptionState& = ASSERT_NO_EXCEPTION);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 virtual void dispose() override; 673 virtual void dispose() override;
674 #endif 674 #endif
675 675
676 PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); 676 PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren();
677 677
678 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); 678 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&);
679 679
680 private: 680 private:
681 friend class Node; 681 friend class Node;
682 682
683 bool isDocumentFragment() const WTF_DELETED_FUNCTION; // This will catch any one doing an unnecessary check. 683 bool isDocumentFragment() const = delete; // This will catch anyone doing an unnecessary check.
684 bool isDocumentNode() const WTF_DELETED_FUNCTION; // This will catch anyone doing an unnecessary check. 684 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check.
685 bool isElementNode() const WTF_DELETED_FUNCTION; // This will catch anyone d oing an unnecessary check. 685 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
686 686
687 ScriptedAnimationController& ensureScriptedAnimationController(); 687 ScriptedAnimationController& ensureScriptedAnimationController();
688 virtual EventQueue* eventQueue() const override final; 688 virtual EventQueue* eventQueue() const override final;
689 689
690 // FIXME: Rename the StyleRecalc state to RenderTreeUpdate. 690 // FIXME: Rename the StyleRecalc state to RenderTreeUpdate.
691 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::VisualUpdatePending; } 691 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::VisualUpdatePending; }
692 692
693 bool shouldScheduleRenderTreeUpdate() const; 693 bool shouldScheduleRenderTreeUpdate() const;
694 void scheduleRenderTreeUpdate(); 694 void scheduleRenderTreeUpdate();
695 695
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 Node* eventTargetNodeForDocument(Document*); 929 Node* eventTargetNodeForDocument(Document*);
930 930
931 } // namespace blink 931 } // namespace blink
932 932
933 #ifndef NDEBUG 933 #ifndef NDEBUG
934 // Outside the WebCore namespace for ease of invocation from gdb. 934 // Outside the WebCore namespace for ease of invocation from gdb.
935 void showLiveDocumentInstances(); 935 void showLiveDocumentInstances();
936 #endif 936 #endif
937 937
938 #endif // Document_h 938 #endif // Document_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/ContainerNode.h ('k') | sky/engine/core/dom/DocumentFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698