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

Side by Side Diff: Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "core/css/CSSPrimitiveValueMappings.h" 55 #include "core/css/CSSPrimitiveValueMappings.h"
56 #include "core/css/CSSProperty.h" 56 #include "core/css/CSSProperty.h"
57 #include "core/css/CSSReflectValue.h" 57 #include "core/css/CSSReflectValue.h"
58 #include "core/css/CSSVariableValue.h" 58 #include "core/css/CSSVariableValue.h"
59 #include "core/css/Counter.h" 59 #include "core/css/Counter.h"
60 #include "core/css/FontValue.h" 60 #include "core/css/FontValue.h"
61 #include "core/css/Pair.h" 61 #include "core/css/Pair.h"
62 #include "core/css/Rect.h" 62 #include "core/css/Rect.h"
63 #include "core/css/ShadowValue.h" 63 #include "core/css/ShadowValue.h"
64 #include "core/css/StylePropertySet.h" 64 #include "core/css/StylePropertySet.h"
65 #include "core/css/StyleRule.h"
65 #include "core/css/resolver/ElementStyleResources.h" 66 #include "core/css/resolver/ElementStyleResources.h"
66 #include "core/css/resolver/FilterOperationResolver.h" 67 #include "core/css/resolver/FilterOperationResolver.h"
67 #include "core/css/resolver/FontBuilder.h" 68 #include "core/css/resolver/FontBuilder.h"
68 #include "core/css/resolver/StyleBuilder.h" 69 #include "core/css/resolver/StyleBuilder.h"
69 #include "core/css/resolver/StyleResolverState.h" 70 #include "core/css/resolver/StyleResolverState.h"
70 #include "core/css/resolver/TransformBuilder.h" 71 #include "core/css/resolver/TransformBuilder.h"
71 #include "core/page/Frame.h" 72 #include "core/page/Frame.h"
72 #include "core/page/Settings.h" 73 #include "core/page/Settings.h"
73 #include "core/platform/graphics/FontDescription.h" 74 #include "core/platform/graphics/FontDescription.h"
74 #include "core/rendering/style/CounterContent.h" 75 #include "core/rendering/style/CounterContent.h"
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 } 1626 }
1626 case CSSPropertyWebkitTapHighlightColor: { 1627 case CSSPropertyWebkitTapHighlightColor: {
1627 HANDLE_INHERIT_AND_INITIAL(tapHighlightColor, TapHighlightColor); 1628 HANDLE_INHERIT_AND_INITIAL(tapHighlightColor, TapHighlightColor);
1628 if (!primitiveValue) 1629 if (!primitiveValue)
1629 break; 1630 break;
1630 1631
1631 Color col = state.document().textLinkColors().colorFromPrimitiveValue(pr imitiveValue, state.style()->visitedDependentColor(CSSPropertyColor)); 1632 Color col = state.document().textLinkColors().colorFromPrimitiveValue(pr imitiveValue, state.style()->visitedDependentColor(CSSPropertyColor));
1632 state.style()->setTapHighlightColor(col); 1633 state.style()->setTapHighlightColor(col);
1633 return; 1634 return;
1634 } 1635 }
1636 case CSSPropertyInternalCallback: {
1637 if (isInherit || isInitial)
1638 return;
1639 if (primitiveValue && primitiveValue->getValueID() == CSSValueInternalPr esence) {
1640 state.style()->addCallbackSelector(state.currentRule()->selectorList ().selectorsText());
1641 return;
1642 }
1643 break;
1644 }
1635 case CSSPropertyInvalid: 1645 case CSSPropertyInvalid:
1636 return; 1646 return;
1637 // Directional properties are resolved by resolveDirectionAwareProperty() be fore the switch. 1647 // Directional properties are resolved by resolveDirectionAwareProperty() be fore the switch.
1638 case CSSPropertyWebkitBorderEndColor: 1648 case CSSPropertyWebkitBorderEndColor:
1639 case CSSPropertyWebkitBorderEndStyle: 1649 case CSSPropertyWebkitBorderEndStyle:
1640 case CSSPropertyWebkitBorderEndWidth: 1650 case CSSPropertyWebkitBorderEndWidth:
1641 case CSSPropertyWebkitBorderStartColor: 1651 case CSSPropertyWebkitBorderStartColor:
1642 case CSSPropertyWebkitBorderStartStyle: 1652 case CSSPropertyWebkitBorderStartStyle:
1643 case CSSPropertyWebkitBorderStartWidth: 1653 case CSSPropertyWebkitBorderStartWidth:
1644 case CSSPropertyWebkitBorderBeforeColor: 1654 case CSSPropertyWebkitBorderBeforeColor:
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2396 break; 2406 break;
2397 } 2407 }
2398 case CSSPropertyEnableBackground: 2408 case CSSPropertyEnableBackground:
2399 // Silently ignoring this property for now 2409 // Silently ignoring this property for now
2400 // http://bugs.webkit.org/show_bug.cgi?id=6022 2410 // http://bugs.webkit.org/show_bug.cgi?id=6022
2401 break; 2411 break;
2402 } 2412 }
2403 } 2413 }
2404 2414
2405 } // namespace WebCore 2415 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/MatchedPropertiesCache.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698