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

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

Issue 384413003: Document.title getter should return text of title element and setter should stop when head el… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and take review comment into consideration Created 6 years, 5 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 void processReferrerPolicy(const String& policy); 712 void processReferrerPolicy(const String& policy);
713 713
714 // Returns the owning element in the parent document. 714 // Returns the owning element in the parent document.
715 // Returns 0 if this is the top level document. 715 // Returns 0 if this is the top level document.
716 HTMLFrameOwnerElement* ownerElement() const; 716 HTMLFrameOwnerElement* ownerElement() const;
717 717
718 String title() const { return m_title; } 718 String title() const { return m_title; }
719 void setTitle(const String&); 719 void setTitle(const String&);
720 720
721 Element* titleElement() const { return m_titleElement.get(); } 721 Element* titleElement() const { return m_titleElement.get(); }
722 void setTitleElement(const String& title, Element* titleElement); 722 void setTitleElement(Element*);
723 void removeTitle(Element* titleElement); 723 void removeTitle(Element* titleElement);
724 724
725 const AtomicString& dir(); 725 const AtomicString& dir();
726 void setDir(const AtomicString&); 726 void setDir(const AtomicString&);
727 727
728 String cookie(ExceptionState&) const; 728 String cookie(ExceptionState&) const;
729 void setCookie(const String&, ExceptionState&); 729 void setCookie(const String&, ExceptionState&);
730 730
731 const AtomicString& referrer() const; 731 const AtomicString& referrer() const;
732 732
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 bool m_haveExplicitlyDisabledDNSPrefetch; 1252 bool m_haveExplicitlyDisabledDNSPrefetch;
1253 bool m_containsValidityStyleRules; 1253 bool m_containsValidityStyleRules;
1254 bool m_updateFocusAppearanceRestoresSelection; 1254 bool m_updateFocusAppearanceRestoresSelection;
1255 bool m_containsPlugins; 1255 bool m_containsPlugins;
1256 1256
1257 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter 1257 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter
1258 unsigned m_ignoreDestructiveWriteCount; 1258 unsigned m_ignoreDestructiveWriteCount;
1259 1259
1260 String m_title; 1260 String m_title;
1261 String m_rawTitle; 1261 String m_rawTitle;
1262 bool m_titleSetExplicitly;
1263 RefPtrWillBeMember<Element> m_titleElement; 1262 RefPtrWillBeMember<Element> m_titleElement;
1264 1263
1265 OwnPtr<AXObjectCache> m_axObjectCache; 1264 OwnPtr<AXObjectCache> m_axObjectCache;
1266 OwnPtrWillBeMember<DocumentMarkerController> m_markers; 1265 OwnPtrWillBeMember<DocumentMarkerController> m_markers;
1267 1266
1268 Timer<Document> m_updateFocusAppearanceTimer; 1267 Timer<Document> m_updateFocusAppearanceTimer;
1269 1268
1270 RawPtrWillBeMember<Element> m_cssTarget; 1269 RawPtrWillBeMember<Element> m_cssTarget;
1271 1270
1272 LoadEventProgress m_loadEventProgress; 1271 LoadEventProgress m_loadEventProgress;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 Node* eventTargetNodeForDocument(Document*); 1429 Node* eventTargetNodeForDocument(Document*);
1431 1430
1432 } // namespace blink 1431 } // namespace blink
1433 1432
1434 #ifndef NDEBUG 1433 #ifndef NDEBUG
1435 // Outside the WebCore namespace for ease of invocation from gdb. 1434 // Outside the WebCore namespace for ease of invocation from gdb.
1436 void showLiveDocumentInstances(); 1435 void showLiveDocumentInstances();
1437 #endif 1436 #endif
1438 1437
1439 #endif // Document_h 1438 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/multiple-title-elements-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698