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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 Element* FocusedElement() const { return focused_element_.Get(); } | 721 Element* FocusedElement() const { return focused_element_.Get(); } |
722 UserActionElementSet& UserActionElements() { return user_action_elements_; } | 722 UserActionElementSet& UserActionElements() { return user_action_elements_; } |
723 const UserActionElementSet& UserActionElements() const { | 723 const UserActionElementSet& UserActionElements() const { |
724 return user_action_elements_; | 724 return user_action_elements_; |
725 } | 725 } |
726 void SetAutofocusElement(Element*); | 726 void SetAutofocusElement(Element*); |
727 Element* AutofocusElement() const { return autofocus_element_.Get(); } | 727 Element* AutofocusElement() const { return autofocus_element_.Get(); } |
728 void SetSequentialFocusNavigationStartingPoint(Node*); | 728 void SetSequentialFocusNavigationStartingPoint(Node*); |
729 Element* SequentialFocusNavigationStartingPoint(WebFocusType) const; | 729 Element* SequentialFocusNavigationStartingPoint(WebFocusType) const; |
730 | 730 |
731 void SetActiveHoverElement(Element*); | 731 void SetActiveElement(Element*); |
732 Element* ActiveHoverElement() const { return active_hover_element_.Get(); } | 732 Element* GetActiveElement() const { return active_element_.Get(); } |
733 | 733 |
734 Element* HoverElement() const { return hover_element_.Get(); } | 734 Element* HoverElement() const { return hover_element_.Get(); } |
735 | 735 |
736 void RemoveFocusedElementOfSubtree(Node*, bool among_children_only = false); | 736 void RemoveFocusedElementOfSubtree(Node*, bool among_children_only = false); |
737 void HoveredElementDetached(Element&); | 737 void HoveredElementDetached(Element&); |
738 void ActiveChainNodeDetached(Element&); | 738 void ActiveChainNodeDetached(Element&); |
739 | 739 |
740 void UpdateHoverActiveState(const HitTestRequest&, Element*); | 740 void UpdateHoverActiveState(const HitTestRequest&, Element*); |
741 | 741 |
742 // Updates for :target (CSS3 selector). | 742 // Updates for :target (CSS3 selector). |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 } | 1441 } |
1442 | 1442 |
1443 const OriginAccessEntry& AccessEntryFromURL(); | 1443 const OriginAccessEntry& AccessEntryFromURL(); |
1444 | 1444 |
1445 void SendSensitiveInputVisibility(); | 1445 void SendSensitiveInputVisibility(); |
1446 void SendSensitiveInputVisibilityInternal(); | 1446 void SendSensitiveInputVisibilityInternal(); |
1447 | 1447 |
1448 bool HaveImportsLoaded() const; | 1448 bool HaveImportsLoaded() const; |
1449 void ViewportDefiningElementDidChange(); | 1449 void ViewportDefiningElementDidChange(); |
1450 | 1450 |
| 1451 void UpdateActiveState(const HitTestRequest&, Element*); |
| 1452 void UpdateHoverState(const HitTestRequest&, Element*); |
| 1453 |
1451 DocumentLifecycle lifecycle_; | 1454 DocumentLifecycle lifecycle_; |
1452 | 1455 |
1453 bool has_nodes_with_placeholder_style_; | 1456 bool has_nodes_with_placeholder_style_; |
1454 bool evaluate_media_queries_on_style_recalc_; | 1457 bool evaluate_media_queries_on_style_recalc_; |
1455 | 1458 |
1456 // If we do ignore the pending stylesheet count, then we need to add a boolean | 1459 // If we do ignore the pending stylesheet count, then we need to add a boolean |
1457 // to track that this happened so that we can do a full repaint when the | 1460 // to track that this happened so that we can do a full repaint when the |
1458 // stylesheets do eventually load. | 1461 // stylesheets do eventually load. |
1459 PendingSheetLayout pending_sheet_layout_; | 1462 PendingSheetLayout pending_sheet_layout_; |
1460 | 1463 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 bool compatibility_mode_locked_; | 1499 bool compatibility_mode_locked_; |
1497 | 1500 |
1498 TaskHandle execute_scripts_waiting_for_resources_task_handle_; | 1501 TaskHandle execute_scripts_waiting_for_resources_task_handle_; |
1499 | 1502 |
1500 bool has_autofocused_; | 1503 bool has_autofocused_; |
1501 TaskRunnerTimer<Document> clear_focused_element_timer_; | 1504 TaskRunnerTimer<Document> clear_focused_element_timer_; |
1502 Member<Element> autofocus_element_; | 1505 Member<Element> autofocus_element_; |
1503 Member<Element> focused_element_; | 1506 Member<Element> focused_element_; |
1504 Member<Range> sequential_focus_navigation_starting_point_; | 1507 Member<Range> sequential_focus_navigation_starting_point_; |
1505 Member<Element> hover_element_; | 1508 Member<Element> hover_element_; |
1506 Member<Element> active_hover_element_; | 1509 Member<Element> active_element_; |
1507 Member<Element> document_element_; | 1510 Member<Element> document_element_; |
1508 UserActionElementSet user_action_elements_; | 1511 UserActionElementSet user_action_elements_; |
1509 Member<RootScrollerController> root_scroller_controller_; | 1512 Member<RootScrollerController> root_scroller_controller_; |
1510 | 1513 |
1511 uint64_t dom_tree_version_; | 1514 uint64_t dom_tree_version_; |
1512 static uint64_t global_tree_version_; | 1515 static uint64_t global_tree_version_; |
1513 | 1516 |
1514 uint64_t style_version_; | 1517 uint64_t style_version_; |
1515 unsigned force_layout_count_ = 0; | 1518 unsigned force_layout_count_ = 0; |
1516 | 1519 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1737 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1740 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1738 | 1741 |
1739 } // namespace blink | 1742 } // namespace blink |
1740 | 1743 |
1741 #ifndef NDEBUG | 1744 #ifndef NDEBUG |
1742 // Outside the WebCore namespace for ease of invocation from gdb. | 1745 // Outside the WebCore namespace for ease of invocation from gdb. |
1743 CORE_EXPORT void showLiveDocumentInstances(); | 1746 CORE_EXPORT void showLiveDocumentInstances(); |
1744 #endif | 1747 #endif |
1745 | 1748 |
1746 #endif // Document_h | 1749 #endif // Document_h |
OLD | NEW |