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

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

Issue 713563003: Remove execCommand methods from Document. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « no previous file | sky/engine/core/dom/Document.cpp » ('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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 // that as the style for the root element, rather than obtaining it on our o wn. The reason for 488 // that as the style for the root element, rather than obtaining it on our o wn. The reason for
489 // this is that style may not have been associated with the elements yet - i n which case it may 489 // this is that style may not have been associated with the elements yet - i n which case it may
490 // have been calculated on the fly (without associating it with the actual e lement) somewhere. 490 // have been calculated on the fly (without associating it with the actual e lement) somewhere.
491 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const; 491 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const;
492 492
493 DocumentMarkerController& markers() const { return *m_markers; } 493 DocumentMarkerController& markers() const { return *m_markers; }
494 494
495 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument Element; } 495 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument Element; }
496 void setDirectionSetOnDocumentElement(bool b) { m_directionSetOnDocumentElem ent = b; } 496 void setDirectionSetOnDocumentElement(bool b) { m_directionSetOnDocumentElem ent = b; }
497 497
498 bool execCommand(const String& command, bool userInterface = false, const St ring& value = String());
499 bool queryCommandEnabled(const String& command);
500 bool queryCommandIndeterm(const String& command);
501 bool queryCommandState(const String& command);
502 bool queryCommandSupported(const String& command);
503 String queryCommandValue(const String& command);
504
505 KURL openSearchDescriptionURL(); 498 KURL openSearchDescriptionURL();
506 499
507 Document& topDocument() const; 500 Document& topDocument() const;
508 WeakPtr<Document> contextDocument(); 501 WeakPtr<Document> contextDocument();
509 502
510 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : 0; } 503 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : 0; }
511 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); 504 void pushCurrentScript(PassRefPtr<HTMLScriptElement>);
512 void popCurrentScript(); 505 void popCurrentScript();
513 506
514 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets }; 507 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets };
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 Node* eventTargetNodeForDocument(Document*); 893 Node* eventTargetNodeForDocument(Document*);
901 894
902 } // namespace blink 895 } // namespace blink
903 896
904 #ifndef NDEBUG 897 #ifndef NDEBUG
905 // Outside the WebCore namespace for ease of invocation from gdb. 898 // Outside the WebCore namespace for ease of invocation from gdb.
906 void showLiveDocumentInstances(); 899 void showLiveDocumentInstances();
907 #endif 900 #endif
908 901
909 #endif // Document_h 902 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698