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

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

Issue 708233002: Remove many attributes. (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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 SelectorQueryCache& selectorQueryCache(); 194 SelectorQueryCache& selectorQueryCache();
195 195
196 // Focus Management. 196 // Focus Management.
197 Element* activeElement() const; 197 Element* activeElement() const;
198 bool hasFocus() const; 198 bool hasFocus() const;
199 199
200 // DOM methods & attributes for Document 200 // DOM methods & attributes for Document
201 201
202 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } 202 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; }
203 203
204 void setReferrerPolicy(ReferrerPolicy);
205 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } 204 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
206 205
207 String outgoingReferrer(); 206 String outgoingReferrer();
208 207
209 Element* documentElement() const 208 Element* documentElement() const
210 { 209 {
211 return m_documentElement.get(); 210 return m_documentElement.get();
212 } 211 }
213 212
214 Location* location() const; 213 Location* location() const;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy pes & listenerType); } 437 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy pes & listenerType); }
439 void addListenerTypeIfNeeded(const AtomicString& eventType); 438 void addListenerTypeIfNeeded(const AtomicString& eventType);
440 439
441 bool hasMutationObserversOfType(MutationObserver::MutationType type) const 440 bool hasMutationObserversOfType(MutationObserver::MutationType type) const
442 { 441 {
443 return m_mutationObserverTypes & type; 442 return m_mutationObserverTypes & type;
444 } 443 }
445 bool hasMutationObservers() const { return m_mutationObserverTypes; } 444 bool hasMutationObservers() const { return m_mutationObserverTypes; }
446 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; } 445 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; }
447 446
448 /**
449 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv ="..." content="...">. This is called
450 * when a meta tag is encountered during document parsing, and also when a s cript dynamically changes or adds a meta
451 * tag. This enables scripts to use meta tags to perform refreshes and set e xpiry dates in addition to them being
452 * specified in a HTML file.
453 *
454 * @param equiv The http header name (value of the meta tag's "equiv" attrib ute)
455 * @param content The header value (value of the meta tag's "content" attrib ute)
456 * @param inDocumentHeadElement Is the element in the document's <head> elem ent?
457 */
458 void processHttpEquiv(const AtomicString& equiv, const AtomicString& content , bool inDocumentHeadElement);
459 void processReferrerPolicy(const String& policy);
460
461 String title() const { return m_title; } 447 String title() const { return m_title; }
462 void setTitle(const String&); 448 void setTitle(const String&);
463 449
464 Element* titleElement() const { return m_titleElement.get(); } 450 Element* titleElement() const { return m_titleElement.get(); }
465 void setTitleElement(Element*); 451 void setTitleElement(Element*);
466 void removeTitle(Element* titleElement); 452 void removeTitle(Element* titleElement);
467 453
468 const AtomicString& dir(); 454 const AtomicString& dir();
469 void setDir(const AtomicString&); 455 void setDir(const AtomicString&);
470 456
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to 699 // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to
714 // prevent the Document from getting blown away from underneath them. 700 // prevent the Document from getting blown away from underneath them.
715 void dispatchWindowLoadEvent(); 701 void dispatchWindowLoadEvent();
716 702
717 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; } 703 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; }
718 704
719 void clearFocusedElementSoon(); 705 void clearFocusedElementSoon();
720 void clearFocusedElementTimerFired(Timer<Document>*); 706 void clearFocusedElementTimerFired(Timer<Document>*);
721 void focusAutofocusElementTimerFired(Timer<Document>*); 707 void focusAutofocusElementTimerFired(Timer<Document>*);
722 708
723 void processHttpEquivRefresh(const AtomicString& content);
724
725 void setHoverNode(PassRefPtr<Node>); 709 void setHoverNode(PassRefPtr<Node>);
726 Node* hoverNode() const { return m_hoverNode.get(); } 710 Node* hoverNode() const { return m_hoverNode.get(); }
727 711
728 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; 712 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet;
729 static EventFactorySet& eventFactories(); 713 static EventFactorySet& eventFactories();
730 714
731 DocumentLifecycle m_lifecycle; 715 DocumentLifecycle m_lifecycle;
732 716
733 bool m_hasNodesWithPlaceholderStyle; 717 bool m_hasNodesWithPlaceholderStyle;
734 bool m_evaluateMediaQueriesOnStyleRecalc; 718 bool m_evaluateMediaQueriesOnStyleRecalc;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 Node* eventTargetNodeForDocument(Document*); 870 Node* eventTargetNodeForDocument(Document*);
887 871
888 } // namespace blink 872 } // namespace blink
889 873
890 #ifndef NDEBUG 874 #ifndef NDEBUG
891 // Outside the WebCore namespace for ease of invocation from gdb. 875 // Outside the WebCore namespace for ease of invocation from gdb.
892 void showLiveDocumentInstances(); 876 void showLiveDocumentInstances();
893 #endif 877 #endif
894 878
895 #endif // Document_h 879 #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