| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "core/frame/LocalFrame.h" | 43 #include "core/frame/LocalFrame.h" |
| 44 #include "core/html/HTMLDocument.h" | 44 #include "core/html/HTMLDocument.h" |
| 45 #include "core/html/HTMLFrameElementBase.h" | 45 #include "core/html/HTMLFrameElementBase.h" |
| 46 #include "core/html/HTMLInputElement.h" | 46 #include "core/html/HTMLInputElement.h" |
| 47 #include "core/html/HTMLOptionElement.h" | 47 #include "core/html/HTMLOptionElement.h" |
| 48 #include "core/html/HTMLSelectElement.h" | 48 #include "core/html/HTMLSelectElement.h" |
| 49 #include "core/html/parser/HTMLParserIdioms.h" | 49 #include "core/html/parser/HTMLParserIdioms.h" |
| 50 #include "core/html/track/vtt/VTTElement.h" | 50 #include "core/html/track/vtt/VTTElement.h" |
| 51 #include "core/inspector/InspectorInstrumentation.h" | 51 #include "core/inspector/InspectorInstrumentation.h" |
| 52 #include "core/layout/LayoutObject.h" | 52 #include "core/layout/LayoutObject.h" |
| 53 #include "core/layout/LayoutScrollbar.h" |
| 53 #include "core/layout/style/LayoutStyle.h" | 54 #include "core/layout/style/LayoutStyle.h" |
| 54 #include "core/page/FocusController.h" | 55 #include "core/page/FocusController.h" |
| 55 #include "core/page/Page.h" | 56 #include "core/page/Page.h" |
| 56 #include "core/rendering/RenderScrollbar.h" | |
| 57 #include "platform/scroll/ScrollableArea.h" | 57 #include "platform/scroll/ScrollableArea.h" |
| 58 #include "platform/scroll/ScrollbarTheme.h" | 58 #include "platform/scroll/ScrollbarTheme.h" |
| 59 | 59 |
| 60 namespace blink { | 60 namespace blink { |
| 61 | 61 |
| 62 using namespace HTMLNames; | 62 using namespace HTMLNames; |
| 63 | 63 |
| 64 SelectorChecker::SelectorChecker(Document& document, Mode mode) | 64 SelectorChecker::SelectorChecker(Document& document, Mode mode) |
| 65 : m_strictParsing(!document.inQuirksMode()) | 65 : m_strictParsing(!document.inQuirksMode()) |
| 66 , m_mode(mode) | 66 , m_mode(mode) |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 *specificity = maxSpecificity; | 1036 *specificity = maxSpecificity; |
| 1037 return true; | 1037 return true; |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 // FIXME: this was a fallthrough condition. | 1040 // FIXME: this was a fallthrough condition. |
| 1041 return false; | 1041 return false; |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 bool SelectorChecker::checkScrollbarPseudoClass(const SelectorCheckingContext& c
ontext, Document* document, const CSSSelector& selector) const | 1044 bool SelectorChecker::checkScrollbarPseudoClass(const SelectorCheckingContext& c
ontext, Document* document, const CSSSelector& selector) const |
| 1045 { | 1045 { |
| 1046 RenderScrollbar* scrollbar = context.scrollbar; | 1046 LayoutScrollbar* scrollbar = context.scrollbar; |
| 1047 ScrollbarPart part = context.scrollbarPart; | 1047 ScrollbarPart part = context.scrollbarPart; |
| 1048 | 1048 |
| 1049 // FIXME: This is a temporary hack for resizers and scrollbar corners. Event
ually :window-inactive should become a real | 1049 // FIXME: This is a temporary hack for resizers and scrollbar corners. Event
ually :window-inactive should become a real |
| 1050 // pseudo class and just apply to everything. | 1050 // pseudo class and just apply to everything. |
| 1051 if (selector.pseudoType() == CSSSelector::PseudoWindowInactive) | 1051 if (selector.pseudoType() == CSSSelector::PseudoWindowInactive) |
| 1052 return !document->page()->focusController().isActive(); | 1052 return !document->page()->focusController().isActive(); |
| 1053 | 1053 |
| 1054 if (!scrollbar) | 1054 if (!scrollbar) |
| 1055 return false; | 1055 return false; |
| 1056 | 1056 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 return isHTMLSelectElement(element) && !toHTMLSelectElement(element).usesMen
uList(); | 1186 return isHTMLSelectElement(element) && !toHTMLSelectElement(element).usesMen
uList(); |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 template | 1189 template |
| 1190 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; | 1190 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; |
| 1191 | 1191 |
| 1192 template | 1192 template |
| 1193 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; | 1193 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; |
| 1194 | 1194 |
| 1195 } | 1195 } |
| OLD | NEW |