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

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

Issue 715653004: Navigation transitions (web to native app): Hide/Show transition elements (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add helper function 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
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 bool hasSVGRootNode() const; 379 bool hasSVGRootNode() const;
380 380
381 bool isFrameSet() const; 381 bool isFrameSet() const;
382 382
383 bool isSrcdocDocument() const { return m_isSrcdocDocument; } 383 bool isSrcdocDocument() const { return m_isSrcdocDocument; }
384 bool isMobileDocument() const { return m_isMobileDocument; } 384 bool isMobileDocument() const { return m_isMobileDocument; }
385 385
386 bool isTransitionDocument() const { return m_isTransitionDocument; } 386 bool isTransitionDocument() const { return m_isTransitionDocument; }
387 void setIsTransitionDocument() { m_isTransitionDocument = true; } 387 void setIsTransitionDocument() { m_isTransitionDocument = true; }
388 void hideTransitionElements(const AtomicString& cssSelector); 388 void hideTransitionElements(const AtomicString& cssSelector);
389 void showTransitionElements(const AtomicString& cssSelector);
389 390
390 struct TransitionElement { 391 struct TransitionElement {
391 String id; 392 String id;
392 IntRect rect; 393 IntRect rect;
393 }; 394 };
394 395
395 struct TransitionElementData { 396 struct TransitionElementData {
396 String scope; 397 String scope;
397 String selector; 398 String selector;
398 String markup; 399 String markup;
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content); 1161 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const AtomicString& content);
1161 1162
1162 bool haveStylesheetsLoaded() const; 1163 bool haveStylesheetsLoaded() const;
1163 1164
1164 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); 1165 void setHoverNode(PassRefPtrWillBeRawPtr<Node>);
1165 Node* hoverNode() const { return m_hoverNode.get(); } 1166 Node* hoverNode() const { return m_hoverNode.get(); }
1166 1167
1167 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>; 1168 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>;
1168 static EventFactorySet& eventFactories(); 1169 static EventFactorySet& eventFactories();
1169 1170
1171 void updateElementOpacity(const AtomicString& cssSelector, double opacity);
1172
1170 DocumentLifecycle m_lifecycle; 1173 DocumentLifecycle m_lifecycle;
1171 1174
1172 bool m_hasNodesWithPlaceholderStyle; 1175 bool m_hasNodesWithPlaceholderStyle;
1173 bool m_evaluateMediaQueriesOnStyleRecalc; 1176 bool m_evaluateMediaQueriesOnStyleRecalc;
1174 1177
1175 // If we do ignore the pending stylesheet count, then we need to add a boole an 1178 // If we do ignore the pending stylesheet count, then we need to add a boole an
1176 // to track that this happened so that we can do a full repaint when the sty lesheets 1179 // to track that this happened so that we can do a full repaint when the sty lesheets
1177 // do eventually load. 1180 // do eventually load.
1178 PendingSheetLayout m_pendingSheetLayout; 1181 PendingSheetLayout m_pendingSheetLayout;
1179 1182
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1431 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1429 1432
1430 } // namespace blink 1433 } // namespace blink
1431 1434
1432 #ifndef NDEBUG 1435 #ifndef NDEBUG
1433 // Outside the WebCore namespace for ease of invocation from gdb. 1436 // Outside the WebCore namespace for ease of invocation from gdb.
1434 void showLiveDocumentInstances(); 1437 void showLiveDocumentInstances();
1435 #endif 1438 #endif
1436 1439
1437 #endif // Document_h 1440 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698