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

Side by Side Diff: Source/core/rendering/style/RenderStyle.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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 return; 733 return;
734 rareInheritedData.access()->quotes = q; 734 rareInheritedData.access()->quotes = q;
735 } 735 }
736 736
737 void RenderStyle::clearCursorList() 737 void RenderStyle::clearCursorList()
738 { 738 {
739 if (rareInheritedData->cursorData) 739 if (rareInheritedData->cursorData)
740 rareInheritedData.access()->cursorData = 0; 740 rareInheritedData.access()->cursorData = 0;
741 } 741 }
742 742
743 void RenderStyle::addCallbackSelector(const String& selector)
744 {
745 if (!rareNonInheritedData->m_callbackSelectors.contains(selector))
746 rareNonInheritedData.access()->m_callbackSelectors.append(selector);
747 }
748
743 void RenderStyle::clearContent() 749 void RenderStyle::clearContent()
744 { 750 {
745 if (rareNonInheritedData->m_content) 751 if (rareNonInheritedData->m_content)
746 rareNonInheritedData.access()->m_content = nullptr; 752 rareNonInheritedData.access()->m_content = nullptr;
747 } 753 }
748 754
749 void RenderStyle::appendContent(PassOwnPtr<ContentData> contentData) 755 void RenderStyle::appendContent(PassOwnPtr<ContentData> contentData)
750 { 756 {
751 OwnPtr<ContentData>& content = rareNonInheritedData.access()->m_content; 757 OwnPtr<ContentData>& content = rareNonInheritedData.access()->m_content;
752 ContentData* lastContent = content.get(); 758 ContentData* lastContent = content.get();
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 surround.access()->border.m_image.setOutset(outset); 1631 surround.access()->border.m_image.setOutset(outset);
1626 } 1632 }
1627 1633
1628 ShapeValue* RenderStyle::initialShapeInside() 1634 ShapeValue* RenderStyle::initialShapeInside()
1629 { 1635 {
1630 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu tsideValue())); 1636 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu tsideValue()));
1631 return sOutsideValue.get(); 1637 return sOutsideValue.get();
1632 } 1638 }
1633 1639
1634 } // namespace WebCore 1640 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | Source/core/rendering/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698