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

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: Add a test for watching dynamic attribute changes Created 7 years, 4 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return; 682 return;
683 rareInheritedData.access()->quotes = q; 683 rareInheritedData.access()->quotes = q;
684 } 684 }
685 685
686 void RenderStyle::clearCursorList() 686 void RenderStyle::clearCursorList()
687 { 687 {
688 if (rareInheritedData->cursorData) 688 if (rareInheritedData->cursorData)
689 rareInheritedData.access()->cursorData = 0; 689 rareInheritedData.access()->cursorData = 0;
690 } 690 }
691 691
692 void RenderStyle::addCallbackSelector(const String& selector)
693 {
694 if (!rareNonInheritedData->m_callbackSelectors.contains(selector))
695 rareNonInheritedData.access()->m_callbackSelectors.append(selector);
696 }
697
692 void RenderStyle::clearContent() 698 void RenderStyle::clearContent()
693 { 699 {
694 if (rareNonInheritedData->m_content) 700 if (rareNonInheritedData->m_content)
695 rareNonInheritedData.access()->m_content = nullptr; 701 rareNonInheritedData.access()->m_content = nullptr;
696 } 702 }
697 703
698 void RenderStyle::appendContent(PassOwnPtr<ContentData> contentData) 704 void RenderStyle::appendContent(PassOwnPtr<ContentData> contentData)
699 { 705 {
700 OwnPtr<ContentData>& content = rareNonInheritedData.access()->m_content; 706 OwnPtr<ContentData>& content = rareNonInheritedData.access()->m_content;
701 ContentData* lastContent = content.get(); 707 ContentData* lastContent = content.get();
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 surround.access()->border.m_image.setOutset(outset); 1571 surround.access()->border.m_image.setOutset(outset);
1566 } 1572 }
1567 1573
1568 ShapeValue* RenderStyle::initialShapeInside() 1574 ShapeValue* RenderStyle::initialShapeInside()
1569 { 1575 {
1570 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu tsideValue())); 1576 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu tsideValue()));
1571 return sOutsideValue.get(); 1577 return sOutsideValue.get();
1572 } 1578 }
1573 1579
1574 } // namespace WebCore 1580 } // 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