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

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

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a flaky test Created 7 years, 3 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 void didAccessStyleResolver(); 455 void didAccessStyleResolver();
456 456
457 void evaluateMediaQueryList(); 457 void evaluateMediaQueryList();
458 458
459 // Never returns 0. 459 // Never returns 0.
460 FormController* formController(); 460 FormController* formController();
461 Vector<String> formElementsState() const; 461 Vector<String> formElementsState() const;
462 void setStateForNewFormElements(const Vector<String>&); 462 void setStateForNewFormElements(const Vector<String>&);
463 463
464 FrameView* view() const; // can be NULL 464 FrameView* view() const; // can be null
465 Frame* frame() const { return m_frame; } // can be NULL 465 Frame* frame() const { return m_frame; } // can be null
466 Page* page() const; // can be NULL 466 Page* page() const; // can be null
467 Settings* settings() const; // can be NULL 467 Settings* settings() const; // can be null
468
469 float devicePixelRatio() const;
468 470
469 PassRefPtr<Range> createRange(); 471 PassRefPtr<Range> createRange();
470 472
471 PassRefPtr<NodeIterator> createNodeIterator(Node* root, ExceptionState&); 473 PassRefPtr<NodeIterator> createNodeIterator(Node* root, ExceptionState&);
472 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, ExceptionState&); 474 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, ExceptionState&);
473 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, ExceptionState&); 475 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, ExceptionState&);
474 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, bool expandEntityReferences, ExceptionState&); 476 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, bool expandEntityReferences, ExceptionState&);
475 477
476 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&); 478 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionState&);
477 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionState&); 479 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionState&);
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 inline bool Node::isDocumentNode() const 1432 inline bool Node::isDocumentNode() const
1431 { 1433 {
1432 return this == documentInternal(); 1434 return this == documentInternal();
1433 } 1435 }
1434 1436
1435 Node* eventTargetNodeForDocument(Document*); 1437 Node* eventTargetNodeForDocument(Document*);
1436 1438
1437 } // namespace WebCore 1439 } // namespace WebCore
1438 1440
1439 #endif // Document_h 1441 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698