OLD | NEW |
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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla
ss; } | 380 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla
ss; } |
381 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass
; } | 381 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass
; } |
382 | 382 |
383 bool hasSVGRootNode() const; | 383 bool hasSVGRootNode() const; |
384 | 384 |
385 bool isFrameSet() const; | 385 bool isFrameSet() const; |
386 | 386 |
387 bool isSrcdocDocument() const { return m_isSrcdocDocument; } | 387 bool isSrcdocDocument() const { return m_isSrcdocDocument; } |
388 bool isMobileDocument() const { return m_isMobileDocument; } | 388 bool isMobileDocument() const { return m_isMobileDocument; } |
389 | 389 |
390 bool isTransitionDocument() const { return m_isTransitionDocument; } | |
391 void setIsTransitionDocument(bool isTransitionDocument) { m_isTransitionDocu
ment = isTransitionDocument; } | |
392 void hideTransitionElements(const AtomicString& cssSelector); | |
393 void showTransitionElements(const AtomicString& cssSelector); | |
394 | |
395 struct TransitionElement { | |
396 String id; | |
397 IntRect rect; | |
398 }; | |
399 | |
400 struct TransitionElementData { | |
401 String scope; | |
402 String selector; | |
403 String markup; | |
404 Vector<TransitionElement> elements; | |
405 }; | |
406 void getTransitionElementData(Vector<TransitionElementData>&); | |
407 | |
408 StyleResolver* styleResolver() const; | 390 StyleResolver* styleResolver() const; |
409 StyleResolver& ensureStyleResolver() const; | 391 StyleResolver& ensureStyleResolver() const; |
410 | 392 |
411 bool isViewSource() const { return m_isViewSource; } | 393 bool isViewSource() const { return m_isViewSource; } |
412 void setIsViewSource(bool); | 394 void setIsViewSource(bool); |
413 | 395 |
414 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames
paces; } | 396 bool sawElementsInKnownNamespaces() const { return m_sawElementsInKnownNames
paces; } |
415 | 397 |
416 bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheet
sLoaded(); } | 398 bool isRenderingReady() const { return haveImportsLoaded() && haveStylesheet
sLoaded(); } |
417 bool isScriptExecutionReady() const { return isRenderingReady(); } | 399 bool isScriptExecutionReady() const { return isRenderingReady(); } |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); | 1157 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); |
1176 void processHttpEquivAcceptCH(const AtomicString& content); | 1158 void processHttpEquivAcceptCH(const AtomicString& content); |
1177 | 1159 |
1178 bool haveStylesheetsLoaded() const; | 1160 bool haveStylesheetsLoaded() const; |
1179 | 1161 |
1180 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); | 1162 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); |
1181 | 1163 |
1182 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>; | 1164 using EventFactorySet = HashSet<OwnPtr<EventFactoryBase>>; |
1183 static EventFactorySet& eventFactories(); | 1165 static EventFactorySet& eventFactories(); |
1184 | 1166 |
1185 void updateElementOpacity(const AtomicString& cssSelector, double opacity); | |
1186 | |
1187 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach
e || !nthIndexCache); m_nthIndexCache = nthIndexCache; } | 1167 void setNthIndexCache(NthIndexCache* nthIndexCache) { ASSERT(!m_nthIndexCach
e || !nthIndexCache); m_nthIndexCache = nthIndexCache; } |
1188 | 1168 |
1189 DocumentLifecycle m_lifecycle; | 1169 DocumentLifecycle m_lifecycle; |
1190 | 1170 |
1191 bool m_hasNodesWithPlaceholderStyle; | 1171 bool m_hasNodesWithPlaceholderStyle; |
1192 bool m_evaluateMediaQueriesOnStyleRecalc; | 1172 bool m_evaluateMediaQueriesOnStyleRecalc; |
1193 | 1173 |
1194 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 1174 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
1195 // to track that this happened so that we can do a full repaint when the sty
lesheets | 1175 // to track that this happened so that we can do a full repaint when the sty
lesheets |
1196 // do eventually load. | 1176 // do eventually load. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 NthIndexCache* m_nthIndexCache = nullptr; | 1321 NthIndexCache* m_nthIndexCache = nullptr; |
1342 | 1322 |
1343 bool m_useSecureKeyboardEntryWhenActive; | 1323 bool m_useSecureKeyboardEntryWhenActive; |
1344 | 1324 |
1345 DocumentClassFlags m_documentClasses; | 1325 DocumentClassFlags m_documentClasses; |
1346 | 1326 |
1347 bool m_isViewSource; | 1327 bool m_isViewSource; |
1348 bool m_sawElementsInKnownNamespaces; | 1328 bool m_sawElementsInKnownNamespaces; |
1349 bool m_isSrcdocDocument; | 1329 bool m_isSrcdocDocument; |
1350 bool m_isMobileDocument; | 1330 bool m_isMobileDocument; |
1351 bool m_isTransitionDocument; | |
1352 | 1331 |
1353 LayoutView* m_layoutView; | 1332 LayoutView* m_layoutView; |
1354 | 1333 |
1355 #if !ENABLE(OILPAN) | 1334 #if !ENABLE(OILPAN) |
1356 WeakPtrFactory<Document> m_weakFactory; | 1335 WeakPtrFactory<Document> m_weakFactory; |
1357 #endif | 1336 #endif |
1358 WeakPtrWillBeWeakMember<Document> m_contextDocument; | 1337 WeakPtrWillBeWeakMember<Document> m_contextDocument; |
1359 | 1338 |
1360 bool m_hasFullscreenSupplement; // For early return in Fullscreen::fromIfExi
sts() | 1339 bool m_hasFullscreenSupplement; // For early return in Fullscreen::fromIfExi
sts() |
1361 | 1340 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1442 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1464 | 1443 |
1465 } // namespace blink | 1444 } // namespace blink |
1466 | 1445 |
1467 #ifndef NDEBUG | 1446 #ifndef NDEBUG |
1468 // Outside the WebCore namespace for ease of invocation from gdb. | 1447 // Outside the WebCore namespace for ease of invocation from gdb. |
1469 CORE_EXPORT void showLiveDocumentInstances(); | 1448 CORE_EXPORT void showLiveDocumentInstances(); |
1470 #endif | 1449 #endif |
1471 | 1450 |
1472 #endif // Document_h | 1451 #endif // Document_h |
OLD | NEW |