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

Side by Side Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 603443002: Don't add '(' to FUNCTION token names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@internalsetshadowunused
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 1309
1310 PassRefPtrWillBeRawPtr<CSSRuleList> LocalDOMWindow::getMatchedCSSRules(Element* element, const String& pseudoElement) const 1310 PassRefPtrWillBeRawPtr<CSSRuleList> LocalDOMWindow::getMatchedCSSRules(Element* element, const String& pseudoElement) const
1311 { 1311 {
1312 if (!element) 1312 if (!element)
1313 return nullptr; 1313 return nullptr;
1314 1314
1315 if (!isCurrentlyDisplayedInFrame()) 1315 if (!isCurrentlyDisplayedInFrame())
1316 return nullptr; 1316 return nullptr;
1317 1317
1318 unsigned colonStart = pseudoElement[0] == ':' ? (pseudoElement[1] == ':' ? 2 : 1) : 0; 1318 unsigned colonStart = pseudoElement[0] == ':' ? (pseudoElement[1] == ':' ? 2 : 1) : 0;
1319 CSSSelector::PseudoType pseudoType = CSSSelector::parsePseudoType(AtomicStri ng(pseudoElement.substring(colonStart))); 1319 CSSSelector::PseudoType pseudoType = CSSSelector::parsePseudoType(AtomicStri ng(pseudoElement.substring(colonStart)), false);
1320 if (pseudoType == CSSSelector::PseudoUnknown && !pseudoElement.isEmpty()) 1320 if (pseudoType == CSSSelector::PseudoUnknown && !pseudoElement.isEmpty())
1321 return nullptr; 1321 return nullptr;
1322 1322
1323 unsigned rulesToInclude = StyleResolver::AuthorCSSRules; 1323 unsigned rulesToInclude = StyleResolver::AuthorCSSRules;
1324 PseudoId pseudoId = CSSSelector::pseudoId(pseudoType); 1324 PseudoId pseudoId = CSSSelector::pseudoId(pseudoType);
1325 return m_frame->document()->ensureStyleResolver().pseudoCSSRulesForElement(e lement, pseudoId, rulesToInclude); 1325 return m_frame->document()->ensureStyleResolver().pseudoCSSRulesForElement(e lement, pseudoId, rulesToInclude);
1326 } 1326 }
1327 1327
1328 double LocalDOMWindow::devicePixelRatio() const 1328 double LocalDOMWindow::devicePixelRatio() const
1329 { 1329 {
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 FrameDestructionObserver::trace(visitor); 1907 FrameDestructionObserver::trace(visitor);
1908 } 1908 }
1909 1909
1910 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate) 1910 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate)
1911 { 1911 {
1912 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. 1912 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8].
1913 return v8::Handle<v8::Object>(); 1913 return v8::Handle<v8::Object>();
1914 } 1914 }
1915 1915
1916 } // namespace blink 1916 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698